Module ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad While Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr keyword NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A django.db models django.contrib.auth.models User treeio.core.conf settings N/A KEY_SIZE 18 N/A SECRET_SIZE 32 N/A CONSUMER_DB N/A getattr settings HARDTREE_API_CONSUMER_DB default KeyManager N/A N/A models Manager N/A N/A Add support for random key/secret generation
     generate_random_codes N/A N/A self N/A N/A N/A key N/A N/A N/A User objects make_random_password length KEY_SIZE N/A secret N/A N/A N/A User objects make_random_password length SECRET_SIZE N/A N/A N/A N/A N/A self filter key__exact key secret__exact secret count N/A N/A secret N/A N/A N/A User objects make_random_password length SECRET_SIZE N/A N/A key secret N/A N/A ConsumerManager N/A KeyManager N/A create_consumer N/A N/A self name description user using N/A None None CONSUMER_DB N/A N/A 
        Shortcut to create a consumer with random key/secret.
         N/A N/A consumer created N/A N/A N/A N/A self using using get_or_create name name N/A user N/A N/A N/A consumer user user N/A description N/A N/A N/A consumer description description N/A created N/A N/A N/A N/A consumer key N/A consumer secret N/A N/A self generate_random_codes N/A N/A N/A consumer save N/A consumer N/A N/A _default_consumer None N/A ResourceManager N/A N/A models Manager N/A N/A _default_resource None get_default_resource N/A N/A self name N/A N/A N/A 
        Add cache if you use a default resource.
         N/A N/A N/A self _default_resource N/A N/A N/A self _default_resource N/A N/A self get name name N/A N/A self _default_resource N/A N/A TokenManager N/A KeyManager N/A create_token N/A N/A self consumer_id token_type timestamp user using N/A None None N/A N/A 
        Shortcut to create a token with random key/secret.
         N/A using N/A N/A manager N/A N/A self using using N/A N/A manager self N/A N/A token created N/A N/A manager get_or_create consumer_id consumer_id token_type token_type timestamp timestamp user user N/A created N/A N/A N/A N/A token key N/A token secret N/A N/A self generate_random_codes N/A N/A N/A token save N/A token N/A N/A