]> jfr.im git - z_archive/twitter.git/blob - twitter/__init__.py
Improve documentation.
[z_archive/twitter.git] / twitter / __init__.py
1 """
2 The minimalist yet fully featured Twitter API and Python toolset.
3
4 The Twitter and TwitterStream classes are the key to building your own
5 Twitter-enabled applications.
6
7 """
8
9 from .api import Twitter, TwitterError, TwitterHTTPError, TwitterResponse
10 from .auth import NoAuth, UserPassAuth
11 from .oauth import OAuth, read_token_file, write_token_file
12 from .stream import TwitterStream
13
14
15 # Who needs Sphinx? Not me!
16
17 __doc__ += """
18 The Twitter class
19 =================
20 """
21 __doc__ += Twitter.__doc__
22
23 __doc__ += """
24 The TwitterStream class
25 =======================
26 """
27 __doc__ += TwitterStream.__doc__
28
29
30 __doc__ += """
31 Twitter Response Objects
32 ========================
33 """
34 __doc__ += TwitterResponse.__doc__
35
36
37 __doc__ += """
38 Authentication Objects
39 ======================
40
41 You can authenticate with Twitter in three ways: NoAuth, OAuth, or
42 UserPassAuth. Get help() on these classes to learn how to use them.
43
44
45 Other things
46 ============
47
48 read_token_file and write_token_file are utility methods to read and
49 write OAuth token and secret key values. The values are stored as
50 strings in the file. Not terribly exciting.
51 """
52
53 __all__ = ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError",
54 "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth",
55 "read_token_file", "write_token_file"]