Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Num NameLoad NameLoad Num body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict Assign NameStore Dict Str BinOpAdd Str NameLoad If CompareNotIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse If CompareNotIn Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad TupleLoad Str Str Str Str Str body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad ListLoad Str Str Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad TupleLoad Str Str Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad While AttributeLoad NameLoad attr body TryExcept body If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr orelse If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareGt BinOpSub AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Num Expr Call NameLoad NameLoad Return NameLoad decorator_list While AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Break If NameLoad body TryExcept body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str orelse If Call AttributeLoad NameLoad attr NameLoad body For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Break Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
twython.streaming.api
~~~~~~~~~~~~~~~~~~~~~

This module contains functionality for interfacing with streaming
Twitter API calls.
 N/A __version__ compat json is_py3 helpers _transparent_params types TwythonStreamerTypes N/A requests requests_oauthlib OAuth1 N/A time TwythonStreamer N/A object N/A __init__ N/A N/A self app_key app_secret oauth_token oauth_token_secret timeout retry_count retry_in client_args handlers chunk_size N/A 300 None 10 None None 1 N/A N/A Streaming class for a friendly streaming user experience
        Authentication IS required to use the Twitter Streaming API

        :param app_key: (required) Your applications key
        :param app_secret: (required) Your applications secret key
        :param oauth_token: (required) Used with oauth_token_secret to make
                            authenticated calls
        :param oauth_token_secret: (required) Used with oauth_token to make
                                   authenticated calls
        :param timeout: (optional) How long (in secs) the streamer should wait
                        for a response from Twitter Streaming API
        :param retry_count: (optional) Number of times the API call should be
                            retired
        :param retry_in: (optional) Amount of time (in secs) the previous
                         API call should be tried again
        :param client_args: (optional) Accepts some requests Session
                            parameters and some requests Request parameters.
                            See
                            http://docs.python-requests.org/en/latest/api/#sessionapi
                            and requests section below it for details.
                            [ex. headers, proxies, verify(SSL verification)]
        :param handlers: (optional) Array of message types for which
                         corresponding handlers will be called

        :param chunk_size: (optional) Define the buffer size before data is
                           actually returned from the Streaming API. Default: 1
         N/A N/A self auth N/A OAuth1 app_key app_secret oauth_token oauth_token_secret N/A N/A self client_args N/A client_args N/A N/A default_headers N/A User-Agent N/A Twython Streaming v __version__ N/A N/A headers N/A self client_args N/A N/A N/A N/A self client_args N/A headers default_headers N/A N/A N/A User-Agent N/A N/A self client_args N/A headers N/A N/A N/A N/A N/A N/A self client_args N/A headers update default_headers N/A N/A N/A self client_args N/A timeout timeout N/A N/A self client N/A N/A requests Session N/A N/A N/A self client auth N/A self auth N/A N/A N/A self client stream True N/A client_args_copy N/A N/A N/A self client_args copy N/A N/A k v N/A N/A client_args_copy items N/A N/A N/A k N/A cert headers hooks max_redirects proxies N/A N/A N/A setattr N/A self client k v N/A N/A N/A N/A self client_args pop k N/A N/A self api_version 1.1 N/A N/A self retry_in retry_in N/A N/A self retry_count retry_count N/A StreamTypes N/A TwythonStreamerTypes self N/A N/A self statuses N/A StreamTypes statuses N/A N/A self user N/A StreamTypes user N/A N/A self site N/A StreamTypes site N/A N/A self connected False N/A N/A self handlers N/A handlers handlers N/A delete limit disconnect N/A N/A self chunk_size chunk_size N/A _request N/A N/A self url method params N/A GET None N/A N/A Internal stream request handling N/A N/A self connected True N/A retry_counter 0 N/A method N/A N/A method lower N/A func N/A getattr N/A self client method N/A N/A params _ N/A _transparent_params params _send N/A N/A retry_counter N/A N/A N/A requests_args N/A N/A N/A k v N/A N/A N/A self client_args items N/A N/A N/A k N/A timeout allow_redirects verify N/A N/A N/A requests_args N/A k v N/A N/A self connected N/A N/A N/A N/A N/A method get N/A N/A N/A requests_args N/A params params N/A N/A N/A requests_args N/A data params N/A response N/A func url requests_args N/A N/A N/A N/A N/A requests exceptions Timeout N/A N/A N/A N/A self on_timeout N/A N/A N/A N/A response status_code 200 N/A N/A N/A N/A self on_error N/A response status_code N/A response content N/A N/A N/A self retry_count N/A N/A N/A self retry_count retry_counter 0 N/A N/A N/A N/A time sleep N/A self retry_in N/A retry_counter 1 N/A N/A _send retry_counter N/A response N/A N/A N/A self connected N/A N/A response N/A _send retry_counter N/A line N/A N/A response iter_lines N/A self chunk_size N/A N/A N/A N/A self connected N/A N/A N/A line N/A N/A N/A N/A is_py3 N/A N/A line N/A N/A line decode utf-8 N/A data N/A N/A json loads line N/A N/A N/A ValueError N/A N/A N/A N/A self on_error N/A response status_code Unable to decode response,                                       not valid JSON. N/A N/A N/A N/A self on_success data N/A N/A message_type N/A self handlers N/A N/A N/A message_type data N/A N/A handler N/A getattr self N/A on_ message_type None N/A N/A handler N/A callable handler N/A N/A handler N/A N/A data get message_type N/A N/A N/A N/A N/A response close N/A on_success N/A N/A self data N/A N/A N/A Called when data has been successfully received from the stream.
        Returns True if other handlers for this message should be invoked.

        Feel free to override this to handle your streaming data how you
        want it handled.
        See https://dev.twitter.com/docs/streaming-apis/messages for messages
        sent along in stream responses.

        :param data: data recieved from the stream
        :type data: dict
         N/A True N/A on_error N/A N/A self status_code data N/A N/A N/A Called when stream returns non-200 status code

        Feel free to override this to handle your streaming data how you
        want it handled.

        :param status_code: Non-200 status code sent from stream
        :type status_code: int

        :param data: Error message sent from stream
        :type data: dict
         N/A N/A on_timeout N/A N/A self N/A N/A N/A  Called when the request has timed out  N/A N/A disconnect N/A N/A self N/A N/A N/A Used to disconnect the streaming client manually N/A N/A self connected False N/A N/A