Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str Str Str Str NameLoad NameLoad NameLoad NameLoad Num Str NameLoad Str Str body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num While CompareIs NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad BinOpSub NameLoad NameLoad Num Num orelse Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad attr keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod BinOpAdd Str Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Num If CompareEq AttributeLoad NameLoad attr Str body If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpAdd Str AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore BoolOpAnd CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr If BoolOpAnd NameLoad Call AttributeLoad Call NameLoad attr ListLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad keyword NameLoad Raise Call NameLoad Str Call NameLoad NameLoad keyword NameLoad keyword Num ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad keyword NameLoad Raise Call NameLoad Str Call NameLoad NameLoad keyword NameLoad keyword Num ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad keyword NameLoad Raise Call NameLoad NameLoad keyword Num ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad keyword NameLoad Raise finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Return NameLoad FunctionDef arguments args defaults vararg kwarg body Assign NameStore Num While NameLoad body Expr Call AttributeLoad NameLoad attr TryExcept body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Str Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMult NameLoad Num NameLoad If CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Pass ExceptHandler type NameLoad name NameStore body Pass ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Raise Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise orelse AugAssignSub NameStore Num If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Raise decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr BinOpMult AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs NameLoad NameLoad body Continue If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Call NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return NameLoad If Call NameLoad NameLoad NameLoad body Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad If Call NameLoad NameLoad NameLoad body Return Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Dict Assign NameStore Dict If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Return Dict For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str If CompareGt NameLoad NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Return NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad TupleLoad NameLoad NameLoad Assign NameStore BinOpLShift Num BinOpSub NameLoad Num Assign NameStore BinOpSub BinOpLShift Num BinOpSub NameLoad Num Num Assert CompareLtE NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assert CompareGtE NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert Call NameLoad NameLoad NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Num Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Num Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Num Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Num Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assert Call NameLoad NameLoad NameLoad Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If CompareIs NameLoad NameLoad body Continue Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad BinOpAdd NameLoad Num Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad BinOpAdd NameLoad Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareIs NameLoad NameLoad BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad BinOpAdd NameLoad Num Return NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad BinOpAdd NameLoad Num Return NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str CompareNotIn NameLoad ListLoad Str Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad BinOpAdd NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr Str decorator_list
N/A N/A Queue N/A logging N/A socket N/A threading N/A time N/A sasl N/A sys thrift.Thrift TType TApplicationException thrift.transport.TSocket TSocket thrift.transport.TSSLSocket TSSLSocket thrift.transport.TTransport TBufferedTransport TFramedTransport TMemoryBuffer TTransportException thrift.protocol.TBinaryProtocol TBinaryProtocol thrift.protocol.TMultiplexedProtocol TMultiplexedProtocol desktop.lib.python_util create_synchronous_io_multiplexer desktop.lib.thrift_.http_client THttpClient desktop.lib.thrift_sasl TSaslClientTransport desktop.lib.exceptions StructuredException StructuredThriftTransportException N/A MAX_RECURSION_DEPTH 50 N/A WARN_LEVEL_CALL_DURATION_MS 5000 N/A INFO_LEVEL_CALL_DURATION_MS 1000 LifoQueue N/A N/A Queue Queue N/A N/A 
    Variant of Queue that retrieves most recently added entries first.

    This LIFO Queue is included in python2.7 (or 2.6) and later,
    but it's a simple subclass, so we "backport" it here.
     _init N/A N/A self maxsize N/A N/A N/A N/A self queue N/A N/A N/A self maxsize maxsize N/A _qsize N/A N/A self len N/A len N/A N/A N/A len N/A self queue N/A _put N/A N/A self item N/A N/A N/A N/A N/A N/A self queue append item N/A _get N/A N/A self N/A N/A N/A N/A N/A N/A self queue pop N/A N/A ConnectionConfig N/A object N/A N/A  Struct-like class encapsulating the configuration of a Thrift client.  __init__ N/A N/A self klass host port service_name use_sasl use_ssl kerberos_principal mechanism username password ca_certs keyfile certfile validate timeout_seconds transport multiple transport_mode http_url N/A False False thrift GSSAPI hue hue None None None False 45 buffered False socket N/A N/A 
    @param klass The thrift client class
    @param host Host to connect to
    @param port Port to connect to
    @param service_name A human-readable name to describe the service
    @param use_sasl If true, will use KERBEROS or PLAIN over SASL to authenticate
    @param use_ssl If true, will use ca_certs, keyfile, and certfile to create TLS connection
    @param mechanism: GSSAPI or PLAIN if SASL
    @param username: username if PLAIN SASL or LDAP only
    @param password: password if PLAIN LDAP only
    @param kerberos_principal The Kerberos service name to connect to.
              NOTE: for a service like fooservice/foo.blah.com@REALM only
              specify "fooservice", NOT the full principal name.
    @param ca_certs certificate authority certificates
    @param keyfile private key file
    @param certfile certificate file
    @param validate Validate the certificate received from server
    @param timeout_seconds Timeout for thrift calls
    @param transport string representation of thrift transport to use
    @param multiple Whether Use MultiplexedProtocol
    @param transport_mode Can be socket or http
    @param Url used when using http transport mode
     N/A N/A self klass klass N/A N/A self host host N/A N/A self port port N/A N/A self service_name service_name N/A N/A self use_sasl use_sasl N/A N/A self use_ssl use_ssl N/A N/A self mechanism mechanism N/A N/A self username username N/A N/A self password password N/A N/A self kerberos_principal kerberos_principal N/A N/A self ca_certs ca_certs N/A N/A self keyfile keyfile N/A N/A self certfile certfile N/A N/A self validate validate N/A N/A self timeout_seconds timeout_seconds N/A N/A self transport transport N/A N/A self multiple multiple N/A N/A self transport_mode transport_mode N/A N/A self http_url http_url N/A __str__ N/A N/A self N/A N/A N/A N/A N/A ,  join N/A map str N/A N/A self klass N/A self host N/A self port N/A self service_name N/A self use_sasl N/A self kerberos_principal N/A self timeout_seconds N/A self mechanism N/A self username N/A self use_ssl N/A self ca_certs N/A self keyfile N/A self certfile N/A self validate N/A self transport N/A self multiple N/A self transport_mode N/A self http_url N/A N/A ConnectionPooler N/A object N/A N/A 
  Thread-safe connection pooling for thrift. (With about 3 changes,
  this could be made general).

  Each host,port pair has a connection pool set associated with it.
  Clients can get connections from this pool and then block when
  none are available.

  A connection is a 'SuperClient', which deals with timeout errors
  automatically so we don't have to worry about refreshing a stale pool.

  We could be fancier here - we could reclaim clients ourselves without
  relying on them to be returned but that would increase complexity. The
  benefit would be not having to hit the connection pool on every client call.
   __init__ N/A N/A self poolsize N/A 10 N/A N/A N/A self pooldict N/A N/A N/A self poolsize poolsize N/A N/A self dictlock N/A N/A threading Lock N/A get_client N/A N/A self conf get_client_timeout N/A None N/A N/A 
    Could block while we wait for the pool to become non-empty.

    @param get_client_timeout: how long (in seconds) to wait on the pool
                               to get a client before failing
     N/A N/A N/A _get_pool_key conf N/A self pooldict N/A N/A N/A N/A N/A self dictlock acquire N/A N/A N/A N/A N/A _get_pool_key conf N/A self pooldict N/A N/A q N/A LifoQueue N/A self poolsize N/A i N/A xrange N/A self poolsize N/A N/A client N/A construct_superclient conf N/A N/A client CID i N/A N/A N/A q put client False N/A N/A N/A self pooldict N/A N/A _get_pool_key conf q N/A N/A N/A N/A N/A self dictlock release N/A connection None N/A start_pool_get_time N/A N/A time time N/A has_waited_for 0 N/A N/A connection None N/A N/A N/A get_client_timeout None N/A N/A this_round_timeout N/A max N/A min N/A get_client_timeout has_waited_for 1 0 N/A N/A this_round_timeout None N/A N/A N/A connection N/A N/A N/A N/A self pooldict N/A N/A _get_pool_key conf get block True timeout this_round_timeout N/A N/A N/A N/A Queue Empty N/A N/A has_waited_for N/A N/A N/A time time start_pool_get_time N/A N/A N/A get_client_timeout None N/A has_waited_for get_client_timeout N/A N/A N/A N/A socket timeout N/A N/A Timed out after %.2f seconds waiting to retrieve a  %s client from the pool. N/A has_waited_for N/A conf service_name N/A N/A N/A logging warn N/A Waited %d seconds for a thrift client to %s:%d N/A has_waited_for N/A conf host N/A conf port N/A connection N/A return_client N/A N/A self conf client N/A N/A N/A 
    Add a client back to its pool. It's an error to
    pass back a client that was not retrieved from a pool, and
    you might well get an exception for doing so.
     N/A N/A N/A N/A N/A self pooldict N/A N/A _get_pool_key conf put client N/A N/A _get_pool_key N/A N/A conf N/A N/A N/A 
  Given a ConnectionConfig, return the tuple used as the key in the dictionary
  of connections by the ConnectionPooler class.
   N/A N/A N/A conf klass N/A conf host N/A conf port N/A construct_superclient N/A N/A conf N/A N/A N/A 
  Constructs a thrift client, lazily.
   N/A N/A service protocol transport N/A connect_to_thrift conf N/A N/A SuperClient service transport timeout_seconds N/A conf timeout_seconds N/A connect_to_thrift N/A N/A conf N/A N/A N/A 
  Connect to a thrift endpoint as determined by the 'conf' parameter.
  Note that this does *not* open the transport.

  Returns a tuple of (service, protocol, transport)
   N/A N/A N/A conf transport_mode http N/A N/A mode N/A THttpClient N/A conf http_url N/A N/A N/A conf use_ssl N/A N/A mode N/A TSSLSocket N/A conf host N/A conf port validate N/A conf validate ca_certs N/A conf ca_certs keyfile N/A conf keyfile certfile N/A conf certfile N/A N/A mode N/A TSocket N/A conf host N/A conf port N/A N/A conf timeout_seconds N/A N/A N/A N/A mode setTimeout N/A N/A conf timeout_seconds 1000.0 N/A N/A N/A conf transport_mode http N/A N/A N/A N/A conf use_sasl N/A N/A conf mechanism PLAIN N/A N/A N/A N/A mode set_kerberos_auth N/A N/A N/A N/A mode set_basic_auth N/A conf username N/A conf password N/A N/A N/A N/A conf transport_mode socket N/A conf use_sasl N/A sasl_factory N/A N/A N/A N/A N/A saslc N/A N/A sasl Client N/A N/A N/A saslc setAttr host N/A str N/A conf host N/A N/A N/A saslc setAttr service N/A str N/A conf kerberos_principal N/A N/A N/A conf mechanism PLAIN N/A N/A N/A N/A saslc setAttr username N/A str N/A conf username N/A N/A N/A saslc setAttr password N/A str N/A conf password N/A N/A N/A saslc init N/A saslc N/A N/A transport N/A TSaslClientTransport sasl_factory N/A conf mechanism mode N/A N/A N/A N/A conf transport framed N/A N/A transport N/A TFramedTransport mode N/A N/A transport N/A TBufferedTransport mode N/A protocol N/A TBinaryProtocol transport N/A N/A conf multiple N/A N/A protocol N/A TMultiplexedProtocol protocol N/A conf service_name N/A service N/A N/A conf klass protocol N/A N/A service protocol transport N/A N/A _connection_pool N/A ConnectionPooler get_client N/A N/A klass host port service_name N/A kwargs N/A N/A conf N/A ConnectionConfig klass host port service_name kwargs N/A N/A PooledClient conf N/A _grab_transport_from_wrapper N/A N/A outer_transport N/A N/A N/A N/A isinstance outer_transport TBufferedTransport N/A N/A N/A outer_transport _TBufferedTransport__trans N/A N/A N/A isinstance outer_transport TSaslClientTransport N/A N/A N/A outer_transport _trans N/A N/A N/A isinstance outer_transport TFramedTransport N/A N/A N/A outer_transport _TFramedTransport__trans N/A N/A N/A Exception N/A Unknown transport type:  N/A outer_transport __class__ N/A PooledClient N/A object N/A N/A 
  A wrapper for a SuperClient
   __init__ N/A N/A self conf N/A N/A N/A N/A self conf conf N/A __getattr__ N/A N/A self attr_name N/A N/A N/A N/A attr_name N/A self __dict__ N/A N/A N/A N/A self __dict__ N/A attr_name N/A superclient N/A N/A _connection_pool get_client N/A self conf get_client_timeout N/A N/A self conf timeout_seconds N/A N/A N/A attr N/A getattr superclient attr_name N/A N/A callable attr N/A N/A N/A N/A self _wrap_callable attr_name N/A N/A attr N/A N/A N/A N/A self _return_client superclient N/A _wrap_callable N/A N/A self attr_name N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A superclient N/A N/A _connection_pool get_client N/A self conf N/A N/A N/A attr N/A getattr superclient attr_name N/A N/A N/A sock N/A N/A N/A N/A self conf transport_mode http N/A N/A _grab_transport_from_wrapper N/A superclient transport handle N/A N/A sock N/A N/A N/A create_synchronous_io_multiplexer read N/A sock N/A N/A N/A N/A N/A superclient transport close N/A N/A N/A N/A superclient transport open N/A N/A N/A superclient set_timeout N/A N/A self conf timeout_seconds N/A N/A attr args kwargs N/A N/A N/A TApplicationException N/A e N/A N/A N/A N/A logging info N/A Thrift saw an application exception:  N/A str e exc_info False N/A N/A StructuredException THRIFTAPPLICATION N/A str e data None error_code 502 N/A N/A N/A socket error N/A e N/A N/A N/A N/A logging info N/A Thrift saw a socket error:  N/A str e exc_info False N/A N/A StructuredException THRIFTSOCKET N/A str e data None error_code 502 N/A N/A TTransportException N/A e N/A N/A N/A N/A logging info N/A Thrift saw a transport exception:  N/A str e exc_info False N/A N/A StructuredThriftTransportException e error_code 502 N/A N/A Exception N/A e N/A N/A N/A N/A logging info N/A Thrift saw exception:  N/A str e exc_info False N/A N/A N/A N/A N/A self _return_client superclient N/A N/A N/A wrapper attr attr_name N/A wrapper N/A _return_client N/A N/A self superclient N/A N/A N/A N/A N/A _connection_pool return_client N/A self conf superclient N/A N/A SuperClient N/A object N/A N/A A wrapper for a Thrift Client that causes it to automatically
  reconnect on failure.

  TODO(todd): get this into the Thrift lib
   __init__ N/A N/A self wrapped_client transport timeout_seconds N/A None N/A N/A N/A self wrapped wrapped_client N/A N/A self transport transport N/A N/A self timeout_seconds timeout_seconds N/A __getattr__ N/A N/A self attr N/A N/A N/A N/A attr N/A self __dict__ N/A N/A N/A N/A self __dict__ N/A attr N/A res N/A getattr N/A self wrapped attr N/A N/A N/A hasattr res __call__ N/A N/A res wrapper N/A N/A N/A args kwargs N/A N/A tries_left 3 N/A tries_left N/A N/A N/A N/A sys exc_clear N/A N/A N/A N/A N/A N/A N/A self transport isOpen N/A N/A N/A N/A N/A self transport open N/A st N/A N/A time time N/A N/A N/A logging debug N/A Thrift call: %s.%s(args=%s, kwargs=%s) N/A N/A str N/A N/A self wrapped __class__ attr N/A repr args N/A repr kwargs N/A ret N/A res args kwargs N/A log_msg N/A repr ret N/A N/A N/A len log_msg 1000 N/A N/A log_msg N/A N/A log_msg N/A 0 1000 ... N/A duration N/A N/A N/A time time st N/A logmsg N/A Thrift call %s.%s returned in %dms: %s N/A N/A str N/A N/A self wrapped __class__ attr N/A duration 1000 log_msg N/A N/A duration WARN_LEVEL_CALL_DURATION_MS N/A N/A N/A N/A logging warn logmsg N/A N/A N/A duration INFO_LEVEL_CALL_DURATION_MS N/A N/A N/A N/A logging info logmsg N/A N/A N/A N/A logging debug logmsg N/A ret N/A N/A N/A N/A socket error N/A e N/A N/A N/A N/A TTransportException N/A e N/A N/A N/A N/A Exception N/A e N/A N/A N/A N/A logging exception Thrift saw exception (this may be expected). N/A N/A N/A N/A N/A self transport close N/A N/A isinstance e N/A socket timeout N/A N/A N/A N/A logging warn N/A Not retrying thrift call %s due to socket timeout attr N/A N/A N/A tries_left 1 N/A tries_left N/A N/A N/A N/A logging info N/A Thrift exception; retrying:  N/A str e exc_info 0 N/A N/A N/A logging warn N/A Out of retries for thrift call:  attr N/A N/A N/A wrapper N/A set_timeout N/A N/A self timeout_seconds N/A N/A N/A N/A timeout_seconds N/A self timeout_seconds N/A N/A N/A self timeout_seconds timeout_seconds N/A N/A N/A self timeout_seconds None N/A N/A N/A N/A N/A _grab_transport_from_wrapper N/A self transport setTimeout N/A N/A self timeout_seconds 1000 N/A N/A N/A N/A N/A _grab_transport_from_wrapper N/A self transport setTimeout None N/A N/A simpler_string N/A N/A thrift_obj N/A N/A N/A 
  Strips out nulls and empty arrays from the string representation.

  TODO(philip): I don't believe this appropriately recurses into
  lists.
  TODO(philip): Implement a max-string-length argument to
  truncate (with "...") long strings.
  TODO(philip): Use this in SuperClient, above.
   N/A L N/A N/A N/A key value N/A N/A N/A thrift_obj __dict__ iteritems N/A N/A N/A value None N/A N/A N/A N/A hasattr value thrift_spec N/A N/A N/A N/A L append N/A %s=%s N/A key N/A simpler_string value N/A N/A N/A N/A L append N/A %s=%r N/A key value N/A N/A %s(%s) N/A N/A N/A thrift_obj __class__ __name__ N/A N/A ,  join L N/A from_bytes N/A N/A klass data N/A N/A N/A Returns thrift object from a string, using standard binary representation. N/A obj N/A klass N/A b N/A TMemoryBuffer data N/A p N/A TBinaryProtocol b N/A N/A N/A obj read p N/A obj N/A to_bytes N/A N/A obj N/A N/A N/A Creates the standard binary representation of a thrift object. N/A b N/A TMemoryBuffer N/A p N/A TBinaryProtocol b N/A N/A N/A obj write p N/A N/A N/A b getvalue N/A thrift2json N/A N/A tft N/A N/A N/A 
  Convert a thrift structure to a JSON compatible dictionary
  by recursing over the dictionary. Will not handle cycles in
  the reference graph!

  Note also that this is not the same as the Thrift C++ and Java bindings
  for a "TJSONProtocol".  This will not survive thrift field renames.

  The set implementation will only work for primitive types.  The Thrift
  wiki suggests (http://wiki.apache.org/thrift/ThriftTypes):
      N.B.: For maximal compatibility, the key type for map should be a basic type
      rather than a struct or container type. There are some languages which do not
      support more complex key types in their native map types. In addition the
      JSON protocol only supports key types that are base types.
  I believe this ought to be true for sets, as well.
   N/A N/A isinstance tft N/A type None N/A N/A None N/A N/A isinstance tft N/A float int long complex basestring N/A N/A tft N/A N/A isinstance tft dict N/A N/A d N/A N/A N/A key val N/A N/A tft iteritems N/A N/A N/A d N/A key N/A thrift2json val N/A d N/A N/A isinstance tft list N/A N/A N/A N/A thrift2json x N/A x tft N/A N/A isinstance tft set N/A N/A N/A dict N/A N/A x True N/A x tft N/A json N/A N/A d N/A N/A N/A hasattr tft __dict__ N/A N/A d N/A tft __dict__ N/A N/A N/A hasattr tft __slots__ N/A N/A d N/A tft __slots__ N/A N/A N/A N/A k d N/A N/A v N/A getattr tft k N/A N/A json N/A k N/A thrift2json v N/A json N/A _jsonable2thrift_helper N/A N/A jsonable type_enum spec_args default recursion_depth N/A 0 N/A N/A 
  Recursive implementation method of jsonable2thrift.

  type_enum corresponds to TType.  spec_args is part of the
  thrift_spec explained in Thrift's code generator.  See
  compiler/cpp/src/generate/t_py_generator.cc .
  default is the default value.

  This method is aggressive about checking types and limits.
  It does not however warn about keys appearing in dictionaries
  that are not represented in the Thrift struct.

  Note that jsonable representations of Thrift objects
  are friendly to read, but they are not backwards-compatible,
  because they are indexed by field names, and not field ids.
   N/A N/A recursion_depth MAX_RECURSION_DEPTH N/A N/A N/A Exception Maximum recursion depth exceeded in jsonable2thrift. N/A N/A jsonable None N/A N/A default check_bits N/A N/A jsonable bits N/A N/A N/A 
    Helper function to check bounds.

    The Thrift IDL specifies how many bytes numbers can be, and always uses
    signed integers.  This makes sure that the Thrift struct that comes out
    conforms to that schema.
     N/A N/A check_type jsonable N/A int long N/A min_val N/A -1 N/A bits 1 N/A max_val N/A N/A 1 N/A bits 1 1 N/A N/A min_val jsonable N/A Value %d <= %d minimum value N/A jsonable min_val N/A N/A max_val jsonable N/A Value %d >= %d maxium value N/A jsonable max_val N/A check_type N/A N/A jsonable expected N/A N/A N/A N/A isinstance jsonable expected N/A Value %s has wrong type.  Expected %s. N/A N/A repr jsonable N/A repr expected N/A N/A N/A type_enum N/A TType BOOL N/A N/A N/A check_type jsonable bool N/A jsonable N/A N/A N/A type_enum N/A TType BYTE N/A N/A N/A check_bits jsonable 8 N/A jsonable N/A N/A N/A type_enum N/A TType I16 N/A N/A N/A check_bits jsonable 16 N/A jsonable N/A N/A N/A type_enum N/A TType I32 N/A N/A N/A check_bits jsonable 32 N/A jsonable N/A N/A N/A type_enum N/A TType I64 N/A N/A N/A check_bits jsonable 64 N/A jsonable N/A N/A N/A type_enum N/A TType DOUBLE N/A N/A N/A check_type jsonable float N/A jsonable N/A N/A N/A type_enum N/A TType STRING N/A N/A N/A isinstance jsonable basestring N/A jsonable N/A N/A N/A type_enum N/A TType STRUCT N/A N/A N/A check_type jsonable dict N/A N/A thrift_type thrift_spec spec_args N/A out N/A thrift_type N/A spec thrift_spec N/A N/A N/A spec None N/A N/A N/A N/A _ cur_type_enum cur_name cur_spec_args cur_default spec N/A value N/A _jsonable2thrift_helper N/A N/A jsonable get cur_name cur_type_enum cur_spec_args cur_default N/A recursion_depth 1 N/A N/A setattr out cur_name value N/A out N/A N/A N/A type_enum N/A TType MAP N/A N/A N/A check_type jsonable dict N/A N/A key_type_enum key_spec_args val_type_enum val_spec_args spec_args N/A out N/A dict N/A N/A k_jsonable v_jsonable N/A N/A jsonable iteritems N/A N/A k N/A _jsonable2thrift_helper k_jsonable key_type_enum key_spec_args None N/A recursion_depth 1 N/A v N/A _jsonable2thrift_helper v_jsonable val_type_enum val_spec_args None N/A recursion_depth 1 N/A N/A out N/A k v N/A out N/A N/A N/A type_enum N/A TType SET N/A N/A N/A set_type_enum set_spec_args spec_args N/A out N/A set N/A N/A k v N/A N/A jsonable iteritems N/A N/A N/A v True N/A Expected set value to be True.  Got: %s N/A repr v N/A N/A N/A out add N/A _jsonable2thrift_helper k set_type_enum set_spec_args None N/A recursion_depth 1 N/A out N/A N/A N/A type_enum N/A TType LIST N/A N/A N/A check_type jsonable list N/A N/A list_type_enum list_spec_args spec_args N/A out N/A list N/A x jsonable N/A N/A N/A N/A out append N/A _jsonable2thrift_helper x list_type_enum list_spec_args None N/A recursion_depth 1 N/A out N/A N/A N/A Exception N/A Unrecognized type: %s.  Value was %s. N/A N/A repr type_enum N/A repr jsonable N/A jsonable2thrift N/A N/A jsonable thrift_class N/A N/A N/A 
  Converts a JSON-able x that represents a thrift struct
  into the struct.  JSON-ables are dicts, lists,
  and primitives, containing the same.  Typically
  they are the result of parsing a JSON string.

  This is compatible with thrift2json.
   N/A N/A _jsonable2thrift_helper jsonable N/A TType STRUCT N/A thrift_class N/A thrift_class thrift_spec default None recursion_depth 0 N/A enum_as_sequence N/A N/A enum N/A N/A N/A 
  Returns an array whose entries are the names of the
  enum's constants. We might want this to select a value
  at random, for example. Once Thrift-generated enum classes
  get better, the need for this function might go away.

  If the class has any members which don't begin with __, they
  will be returned. This is therefore perhaps a little flaky.

  Arguments:
  - `enum`: The class of a Thrift-generated enum
   N/A N/A filter N/A N/A N/A x N/A N/A N/A N/A N/A x startswith __ N/A x N/A _VALUES_TO_NAMES _NAMES_TO_VALUES N/A dir enum N/A fixup_enums N/A N/A obj name_class_map suffix N/A AsString N/A N/A 
  Relying on Todd's THRIFT-546 patch, this function adds a string
  representation of an enum to an object that contains only the integer
  version. Callers must supply two arrays of the same length: the list of
  classes that the enums belongs to, and the list of names of attributes to
  lookup and translate.

  This is destructive - it uses setattr.
   N/A n N/A N/A name_class_map keys N/A N/A c N/A name_class_map N/A n N/A N/A setattr obj N/A n suffix N/A N/A c _VALUES_TO_NAMES N/A N/A getattr obj n N/A obj N/A is_thrift_struct N/A N/A o N/A N/A N/A N/A hasattr N/A o __class__ thrift_spec N/A