]> jfr.im git - z_archive/twitter.git/blame - twitter/__init__.py
Restore Python 2.6 compatibility by restoring the old version of recv_chunk, only...
[z_archive/twitter.git] / twitter / __init__.py
CommitLineData
7364ea65 1"""
2The minimalist yet fully featured Twitter API and Python toolset.
3
24950891
MV
4The Twitter and TwitterStream classes are the key to building your own
5Twitter-enabled applications.
5f47b302 6
7364ea65 7"""
8
a6a7f763
MV
9from textwrap import dedent
10
f7e63802 11from .api import Twitter, TwitterError, TwitterHTTPError, TwitterResponse
24950891 12from .auth import NoAuth, UserPassAuth
a6a7f763
MV
13from .oauth import (OAuth, read_token_file, write_token_file,
14 __doc__ as oauth_doc)
e99a58f8 15from .oauth2 import OAuth2
dd648a25 16from .stream import TwitterStream
a6a7f763 17from .oauth_dance import oauth_dance
24950891 18
ede8b119 19__doc__ = __doc__ or ""
24950891
MV
20
21__doc__ += """
22The Twitter class
51e0b8f1 23-----------------
24950891 24"""
ede8b119 25__doc__ += dedent(Twitter.__doc__ or "")
24950891
MV
26
27__doc__ += """
28The TwitterStream class
51e0b8f1 29-----------------------
24950891 30"""
ede8b119 31__doc__ += dedent(TwitterStream.__doc__ or "")
24950891
MV
32
33
34__doc__ += """
35Twitter Response Objects
51e0b8f1 36------------------------
24950891 37"""
ede8b119 38__doc__ += dedent(TwitterResponse.__doc__ or "")
24950891
MV
39
40
41__doc__ += """
a6a7f763 42Authentication
51e0b8f1 43--------------
24950891
MV
44
45You can authenticate with Twitter in three ways: NoAuth, OAuth, or
46UserPassAuth. Get help() on these classes to learn how to use them.
47
a6a7f763 48OAuth is probably the most useful.
24950891 49
24950891 50
a6a7f763 51Working with OAuth
51e0b8f1 52------------------
24950891
MV
53"""
54
ede8b119 55__doc__ += dedent(oauth_doc or "")
a6a7f763 56
24950891
MV
57__all__ = ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError",
58 "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth",
e99a58f8 59 "read_token_file", "write_token_file", "oauth_dance", "OAuth2"]