]>
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
14 OAuth
, read_token_file
, write_token_file
,
17 OAuth2
, read_bearer_token_file
, write_bearer_token_file
,
18 __doc__
as oauth2_doc
)
19 from .stream
import TwitterStream
20 from .oauth_dance
import oauth_dance
, oauth2_dance
22 __doc__
= __doc__
or ""
28 __doc__
+= dedent(Twitter
.__doc
__ or "")
31 The TwitterStream class
32 -----------------------
34 __doc__
+= dedent(TwitterStream
.__doc
__ or "")
38 Twitter Response Objects
39 ------------------------
41 __doc__
+= dedent(TwitterResponse
.__doc
__ or "")
48 You can authenticate with Twitter in three ways: NoAuth, OAuth, or
49 OAuth2 (app-only). Get help() on these classes to learn how to use them.
51 OAuth and OAuth2 are probably the most useful.
58 __doc__
+= dedent(oauth_doc
or "")
65 __doc__
+= dedent(oauth2_doc
or "")
73 "read_bearer_token_file",
81 "write_bearer_token_file",