Module Expr Str Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call NameLoad ListLoad Str Str Str Str FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs Call NameLoad NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad orelse If UnaryOpNot NameLoad body Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareLt NameLoad Num body Return Str If CompareEq NameLoad Num body If CompareLt NameLoad Num body Return Str If CompareLt NameLoad Num body Return BinOpAdd Call NameLoad NameLoad Str If CompareLt NameLoad Num body Return Str If CompareLt NameLoad Num body Return BinOpAdd Call NameLoad BinOpDiv NameLoad Num Str If CompareLt NameLoad Num body Return Str If CompareLt NameLoad Num body Return BinOpAdd Call NameLoad BinOpDiv NameLoad Num Str If CompareEq NameLoad Num body Return Str If CompareLt NameLoad Num body Return BinOpAdd Call NameLoad NameLoad Str If CompareLt NameLoad Num body Return BinOpAdd Call NameLoad BinOpDiv NameLoad Num Str If CompareLt NameLoad Num body Return BinOpAdd Call NameLoad BinOpDiv NameLoad Num Str Return BinOpAdd Call NameLoad BinOpDiv NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIn Str NameLoad CompareIn SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad decorator_list
N/A N/A 
Utilities for our views and models.
 N/A string N/A random N/A os datetime datetime N/A INSTANCE_FOLDER_PATH N/A N/A N/A os path join /tmp instance N/A ALLOWED_AVATAR_EXTENSIONS N/A set N/A png jpg jpeg gif get_current_time N/A N/A N/A N/A N/A N/A N/A datetime utcnow N/A pretty_date N/A N/A time N/A False N/A N/A 
    Get a datetime object or a int() Epoch timestamp and return a
    pretty string like 'an hour ago', 'Yesterday', '3 months ago',
    'just now', etc
     N/A now N/A N/A datetime now N/A N/A N/A type time int N/A N/A diff N/A now N/A N/A datetime fromtimestamp time N/A N/A N/A isinstance time datetime N/A N/A diff N/A now time N/A N/A N/A time N/A N/A diff N/A now now N/A second_diff N/A diff seconds N/A day_diff N/A diff days N/A N/A day_diff 0 N/A N/A N/A N/A day_diff 0 N/A N/A N/A second_diff 10 N/A N/A just now N/A N/A second_diff 60 N/A N/A N/A N/A str second_diff  seconds ago N/A N/A second_diff 120 N/A N/A a minute ago N/A N/A second_diff 3600 N/A N/A N/A N/A str N/A second_diff 60  minutes ago N/A N/A second_diff 7200 N/A N/A an hour ago N/A N/A second_diff 86400 N/A N/A N/A N/A str N/A second_diff 3600  hours ago N/A N/A day_diff 1 N/A N/A Yesterday N/A N/A day_diff 7 N/A N/A N/A N/A str day_diff  days ago N/A N/A day_diff 31 N/A N/A N/A N/A str N/A day_diff 7  weeks ago N/A N/A day_diff 365 N/A N/A N/A N/A str N/A day_diff 30  months ago N/A N/A N/A str N/A day_diff 365  years ago N/A allowed_file N/A N/A filename N/A N/A N/A N/A N/A . filename N/A N/A N/A N/A filename rsplit . 1 N/A 1 ALLOWED_AVATAR_EXTENSIONS N/A id_generator N/A N/A size chars N/A 10 N/A N/A string ascii_letters N/A string digits N/A N/A N/A N/A join N/A N/A N/A random choice chars N/A x N/A range size N/A make_dir N/A N/A dir_path N/A N/A N/A N/A N/A N/A N/A N/A N/A os path exists dir_path N/A N/A N/A N/A os mkdir dir_path N/A N/A N/A Exception N/A e N/A N/A e N/A