]>
jfr.im git - z_archive/twitter.git/blob - twitter/__init__.py
2 The minimalist yet fully featured Twitter API and Python toolset.
4 The Twitter and TwitterStream classes are the key to building your own
5 Twitter-enabled applications.
9 from textwrap
import dedent
11 from .api
import Twitter
, TwitterError
, TwitterHTTPError
, TwitterResponse
12 from .auth
import NoAuth
, UserPassAuth
13 from .oauth
import (OAuth
, read_token_file
, write_token_file
,
15 from .stream
import TwitterStream
16 from .oauth_dance
import oauth_dance
18 # Who needs Sphinx? Not me!
24 __doc__
+= dedent(Twitter
.__doc
__)
27 The TwitterStream class
28 -----------------------
30 __doc__
+= dedent(TwitterStream
.__doc
__)
34 Twitter Response Objects
35 ------------------------
37 __doc__
+= dedent(TwitterResponse
.__doc
__)
44 You can authenticate with Twitter in three ways: NoAuth, OAuth, or
45 UserPassAuth. Get help() on these classes to learn how to use them.
47 OAuth is probably the most useful.
54 __doc__
+= dedent(oauth_doc
)
56 __all__
= ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError",
57 "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth",
58 "read_token_file", "write_token_file", "oauth_dance"]