]>
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 .oauth2
import OAuth2
16 from .stream
import TwitterStream
17 from .oauth_dance
import oauth_dance
19 __doc__
= __doc__
or ""
25 __doc__
+= dedent(Twitter
.__doc
__ or "")
28 The TwitterStream class
29 -----------------------
31 __doc__
+= dedent(TwitterStream
.__doc
__ or "")
35 Twitter Response Objects
36 ------------------------
38 __doc__
+= dedent(TwitterResponse
.__doc
__ or "")
45 You can authenticate with Twitter in three ways: NoAuth, OAuth, or
46 UserPassAuth. Get help() on these classes to learn how to use them.
48 OAuth is probably the most useful.
55 __doc__
+= dedent(oauth_doc
or "")
57 __all__
= ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError",
58 "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth",
59 "read_token_file", "write_token_file", "oauth_dance", "OAuth2"]