Module ImportFrom alias alias alias alias Import alias Assign NameStore Dict Str Str Num BinOpMult Num Num FunctionDef arguments args NameParam defaults kwarg body Expr Str Expr Call AttributeLoad Call NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Str Assign NameStore Call NameLoad BinOpAdd Str NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareNotIn NameLoad NameLoad body Raise NameLoad BinOpMod Str NameLoad orelse Expr Call AttributeLoad Call NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpAdd Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return GeneratorExp SubscriptLoad Call NameLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Str Assign NameStore Call NameLoad BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad BinOpMod Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad Num SubscriptLoad NameLoad Index Str Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad BinOpMod Str NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults SubscriptLoad NameLoad Index Str body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults SubscriptLoad NameLoad Index Str body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad Num NameLoad decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore Call NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad Return CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad Delete SubscriptDel NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad NameLoad body Return NameLoad Return CompareEq SubscriptLoad NameLoad Index Str NameLoad decorator_list
N/A redis_wrap get_redis get_hash get_set setup_system N/A random N/A resn_settings N/A Feed Size Token Validity 1000 N/A 72 3600 create_user N/A N/A id_attr N/A kwargs N/A N/A 
    Creates a new user with attributes specified as keyword arguments

    'id_attr' is the name of the attribute that will uniquely identify the user.
     N/A N/A N/A N/A get_redis incr users.counter N/A ctr N/A N/A N/A get_redis get users.counter N/A user N/A get_hash N/A users. ctr N/A key kwargs N/A N/A N/A user N/A key N/A kwargs N/A key N/A N/A id_attr kwargs N/A N/A KeyError N/A You did not specify any key '%s' in the call to this function. id_attr N/A N/A N/A N/A N/A get_redis set N/A users.id.%s N/A kwargs N/A id_attr ctr N/A N/A user N/A id N/A kwargs N/A id_attr N/A get_numeric_user_id N/A N/A username N/A N/A N/A N/A N/A N/A get_redis get N/A users.id.%s username N/A delete_user N/A N/A user N/A N/A N/A  Deletes the user and removes all friendships  N/A friends N/A get_set N/A users.%s.friends user N/A friend friends N/A N/A N/A N/A N/A get_set N/A users.%s.friends friend remove user N/A N/A N/A N/A get_redis delete N/A users.%s user N/A get_user_by_id N/A N/A user_id N/A N/A N/A Returns an editable dictionary like wrapper of a user by numeric id N/A N/A get_hash N/A users. user_id N/A get_user N/A N/A user N/A N/A N/A 
    Returns an editable dictionary like wrapper based on the attribute set in 'id_attr'
     N/A N/A get_hash N/A users. N/A get_numeric_user_id user N/A create_connection_by_ids N/A N/A user1 user2 N/A N/A N/A Creates a 'friendship' between two users. Uses internal numeric ids N/A u1 N/A get_set N/A users.%s.friends user1 N/A u2 N/A get_set N/A users.%s.friends user2 N/A N/A N/A u1 add user2 N/A N/A N/A u2 add user1 N/A delete_connection_by_ids N/A N/A user1 user2 N/A N/A N/A Deletes a 'friendship' between two users. Uses internal numeric ids N/A u1 N/A get_set N/A users.%s.friends user1 N/A u2 N/A get_set N/A users.%s.friends user2 N/A N/A N/A u1 remove user2 N/A N/A N/A u2 remove user1 N/A create_connection N/A N/A user1 user2 N/A N/A N/A Creates a 'friendship' between two users, parameters are the values of the 'id_attr' set in 'create_user' N/A u1 N/A get_numeric_user_id user1 N/A u2 N/A get_numeric_user_id user2 N/A N/A create_connection_by_ids u1 u2 N/A delete_connection N/A N/A user1 user2 N/A N/A N/A Deletes a 'friendship' between two users, parameters are the values of the 'id_attr' set in 'create_user' N/A u1 N/A get_numeric_user_id user1 N/A u2 N/A get_numeric_user_id user2 N/A N/A delete_connection_by_ids u1 u2 N/A extract N/A N/A iterable N/A N/A N/A N/A N/A N/A get_user_by_id user N/A id N/A user iterable N/A get_friend_list N/A N/A user N/A N/A N/A Returns a list of the user's friends N/A user N/A get_numeric_user_id user N/A N/A extract N/A get_set N/A users.%s.friends user N/A follow_by_ids N/A N/A follower followee N/A N/A N/A Creates an asymmetric connection between two users. Uses internal numeric ids N/A following N/A get_set N/A users.%s.following follower N/A N/A N/A following add followee N/A followers N/A get_set N/A users.%s.followers followee N/A N/A N/A followers add follower N/A follow N/A N/A follower followee N/A N/A N/A Creates an asymmetric connection between two users.  N/A fr N/A get_numeric_user_id follower N/A fe N/A get_numeric_user_id followee N/A N/A follow_by_ids fr fe N/A unfollow_by_ids N/A N/A follower followee N/A N/A N/A Deletes an asymmetric connection between two users. Uses internal numeric ids N/A following N/A get_set N/A users.%s.following follower N/A N/A N/A following remove followee N/A followers N/A get_set N/A users.%s.followers followee N/A N/A N/A followers remove follower N/A unfollow N/A N/A follower followee N/A N/A N/A Deletes an asymmetric connection between two users.  N/A fr N/A get_numeric_user_id follower N/A fe N/A get_numeric_user_id followee N/A N/A unfollow_by_ids fr fe N/A get_followers_list N/A N/A user N/A N/A N/A Returns a list of the user's followers N/A user N/A get_numeric_user_id user N/A N/A extract N/A get_set N/A users.%s.followers user N/A get_following_list N/A N/A user N/A N/A N/A Returns a list of the users the user is following N/A user N/A get_numeric_user_id user N/A N/A extract N/A get_set N/A users.%s.following user N/A new_update N/A N/A username N/A update N/A N/A Creates a new update object and pushes the update to the feeds of the user's friends and followers. N/A user N/A get_numeric_user_id username N/A N/A N/A N/A get_redis incr updates.counter N/A ctr N/A N/A N/A get_redis get updates.counter N/A upd N/A get_hash N/A updates. ctr N/A N/A upd N/A user user N/A key update N/A N/A N/A upd N/A key N/A update N/A key N/A friends N/A N/A N/A get_redis sunion N/A users.%s.friends user N/A users.%s.followers user N/A friend friends N/A N/A N/A N/A N/A get_redis lpush N/A users.%s.feed friend ctr N/A N/A N/A N/A get_redis ltrim N/A users.%s.feed friend 0 N/A resn_settings N/A Feed Size N/A N/A N/A N/A get_redis lpush N/A users.%s.updates user ctr N/A delete_update N/A N/A update_id N/A N/A N/A Deletes a particular update N/A N/A N/A N/A get_redis delete N/A updates. update_id N/A get_updates_from_list N/A N/A feed N/A N/A N/A  Retrieve updates from their ids  N/A newfeed N/A N/A item feed N/A N/A update N/A get_hash N/A updates.%s item N/A N/A len update N/A N/A N/A N/A newfeed append update N/A newfeed N/A get_feed N/A N/A username limit N/A N/A resn_settings N/A Feed Size N/A N/A Returns the feed containing updates by friends N/A user N/A get_numeric_user_id username N/A N/A get_updates_from_list N/A N/A N/A get_redis lrange N/A users.%s.feed user 0 limit N/A get_user_updates N/A N/A username limit N/A N/A resn_settings N/A Feed Size N/A N/A Returns a list of updates by the user. Useful for generating a user profile. N/A user N/A get_numeric_user_id username N/A N/A get_updates_from_list N/A N/A N/A get_redis lrange N/A users.%s.updates user 0 limit N/A generate_auth_token N/A N/A N/A N/A N/A N/A N/A join N/A N/A N/A random choice 1234567890abcdef N/A i N/A range 25 N/A check_password N/A N/A username password password_field N/A password N/A N/A 
    password_field is the name of the field in 'create_user' that represents the password.
    It is advisable to store and check against a hash of the password rather than the password itself.
     N/A user N/A get_hash N/A users.%s N/A get_numeric_user_id username N/A N/A user N/A N/A False N/A N/A N/A user N/A password_field password N/A login_user N/A N/A username N/A N/A N/A Call this function after check_password passes. It generates an auth token that can be stored in a cookie to store a user session. N/A token N/A generate_auth_token N/A user N/A get_user username N/A N/A user N/A auth token N/A N/A N/A N/A get_redis set N/A auth.%s token N/A str N/A get_numeric_user_id username N/A N/A N/A N/A get_redis expire N/A auth.%s token N/A resn_settings N/A Token Validity N/A token N/A logout_user N/A N/A username N/A N/A N/A Clears the auth tokens. N/A user N/A get_user username N/A token N/A user N/A auth N/A N/A N/A N/A get_redis delete N/A auth.%s token N/A N/A user N/A auth N/A validate_token N/A N/A token N/A N/A N/A  Validates the token stored in a cookie  N/A user_id N/A N/A N/A get_redis get N/A auth.%s token N/A user N/A get_hash N/A users.%s user_id N/A N/A N/A len user N/A N/A False N/A N/A N/A user N/A auth token N/A