Module Import alias alias Import alias Import alias Import alias Assign NameStore NameLoad ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num keyword ListLoad Str Assign NameStore ListLoad SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad keyword ListLoad Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad Str Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Str body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword ListLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Str Str Str Expr Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad decorator_list TryExcept body Import alias identifier handlers ExceptHandler body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Print BinOpMod Str NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body If BoolOpOr CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body If NameLoad body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If BoolOpOr CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad body Continue Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore BoolOpOr NameLoad ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpOr Call NameLoad NameLoad NameLoad BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If UnaryOpNot NameLoad body Expr Yield Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Str If NameLoad body For NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Yield Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Str orelse Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If BoolOpOr CompareIn NameLoad NameLoad BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Continue If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Continue Expr Yield Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Import alias FunctionDef arguments args NameParam defaults body TryExcept body Import alias Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Import alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad Str attr Return Call AttributeLoad NameLoad attr decorator_list If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Print BinOpMod Str NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad ListLoad Str Str Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad orelse Continue orelse Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If CompareIn NameLoad ListLoad Str Str Str Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad orelse If NameLoad body If Call NameLoad NameLoad NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad orelse If NameLoad body If Call NameLoad NameLoad NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body For NameStore NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body ImportFrom alias If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Import alias FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Return NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body ImportFrom alias If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad orelse Return Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body ImportFrom alias If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad Call NameLoad NameLoad attr NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body ImportFrom alias Return Call AttributeLoad NameLoad attr NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad body Assign NameStore Call NameLoad Return Call AttributeLoad Call NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Import alias Import alias If Call NameLoad NameLoad body Assign NameStore Call NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Return NameLoad orelse If CompareIs NameLoad NameLoad body If NameLoad body Return NameLoad orelse Return Str orelse Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Str NameLoad body Import alias Import alias If Call NameLoad NameLoad body Assign NameStore Call NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad orelse If CompareIs NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body If NameLoad body If NameLoad body Return Str orelse Return Str orelse Return Call NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad Return CompareLtELtE SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Import alias If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body ImportFrom alias If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list NameLoad decorator_list Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Import alias Assign NameStore BinOpAdd Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Num Num NameLoad body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Expr Yield BinOpMod Str TupleLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword BinOpAdd NameLoad Num keyword NameLoad body Expr Yield NameLoad Continue Expr Yield BinOpMod Str TupleLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str ImportFrom alias Assign NameStore BoolOpOr NameLoad NameLoad If NameLoad body If AttributeLoad NameLoad attr body Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Return AttributeLoad NameLoad attr orelse Return Str decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If CompareIs NameLoad NameLoad body Continue If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpBitAnd NameLoad NameLoad Return TupleLoad Call NameLoad BinOpSub NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Import alias ImportFrom alias TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore ListLoad NameLoad Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Num If BoolOpAnd NameLoad UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad orelse Assign NameStore ListLoad Assign NameStore ListComp SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Index Num comprehension NameStore NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Assign TupleStore NameStore NameStore NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Delete NameDel Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Index Num If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Return TupleLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Assign NameStore Num For NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num Num Num body Assign NameStore BinOpAdd BinOpAdd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Num If CompareGt NameLoad BinOpSub NameLoad Num body Break Return BinOpAdd Str Call AttributeLoad Str attr SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Import alias Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Import alias Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Return SubscriptLoad Call NameLoad NameLoad NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias alias Import alias If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Num If CompareEq NameLoad Num body Assign NameStore NameLoad Assign NameStore NameLoad Break Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Return BinOpAdd Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpLShift Num BinOpMult BinOpAdd NameLoad Num Num For NameStore Call NameLoad NameLoad body If CompareGtE NameLoad SubscriptLoad NameLoad Index NameLoad body Assign NameStore BinOpDiv Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return BinOpMod Str TupleLoad NameLoad NameLoad Return BinOpMod Str NameLoad decorator_list
N/A N/A os sys N/A re N/A logging N/A cPickle N/A log logging _Default N/A object N/A N/A N/A safe_import N/A N/A path N/A N/A N/A module N/A N/A path split . N/A g N/A __import__ N/A module N/A 0 fromlist N/A * N/A s N/A N/A module N/A 0 N/A i N/A module N/A 1 N/A N/A mod g N/A N/A hasattr mod i N/A N/A g N/A getattr mod i N/A N/A N/A N/A s append i N/A g N/A __import__ N/A N/A . join s fromlist N/A * N/A N/A mod g N/A import_mod_attr N/A N/A path N/A N/A N/A 
    Import string format module, e.g. 'uliweb.orm' or an object
    return module object and object
     N/A inspect N/A N/A isinstance path N/A str unicode N/A N/A v N/A N/A path split : N/A N/A N/A len v 1 N/A N/A N/A module func N/A N/A path rsplit . 1 N/A N/A N/A module func v N/A mod N/A __import__ module fromlist N/A * N/A f mod N/A x N/A N/A func split . N/A N/A N/A N/A f N/A getattr f x N/A N/A N/A N/A N/A AttributeError N/A Get %s attribute according %s error N/A x path N/A N/A f path N/A mod N/A N/A inspect getmodule path N/A N/A mod f N/A import_attr N/A N/A func N/A N/A N/A N/A mod f N/A import_mod_attr func N/A f N/A myimport N/A N/A module N/A N/A N/A mod N/A __import__ module fromlist N/A * N/A mod N/A install N/A N/A packages N/A N/A pkg_resources load_entry_point N/A load N/A load_entry_point setuptools console_scripts easy_install N/A N/A load packages N/A MyPkg N/A object N/A resource_filename N/A N/A module path N/A N/A N/A mod N/A myimport module N/A p N/A N/A N/A os path dirname N/A mod __file__ N/A path N/A N/A N/A N/A N/A os path join p path N/A N/A p N/A staticmethod resource_listdir N/A N/A module path N/A N/A N/A d N/A N/A MyPkg resource_filename module path N/A N/A N/A os listdir d N/A staticmethod resource_isdir N/A N/A module path N/A N/A N/A d N/A N/A MyPkg resource_filename module path N/A N/A N/A N/A os path isdir d N/A staticmethod N/A N/A N/A N/A pkg_resources pkg N/A N/A N/A N/A pkg MyPkg extract_file N/A N/A module path dist verbose replace N/A False True N/A N/A outf N/A N/A N/A os path join dist N/A N/A N/A os path basename path N/A shutil N/A inf N/A N/A pkg resource_filename module path N/A sfile N/A N/A N/A os path basename inf N/A N/A N/A N/A os path isdir dist N/A N/A dfile N/A N/A N/A os path join dist sfile N/A N/A dfile dist N/A f N/A N/A N/A os path exists dfile N/A N/A replace N/A f N/A N/A N/A N/A shutil copy2 inf dfile N/A verbose N/A N/A N/A Copy %s to %s N/A inf dfile N/A extract_dirs N/A N/A mod path dst verbose exclude exclude_ext recursion replace N/A False None None True True N/A N/A 
    mod name
    path mod path
    dst output directory
    resursion True will extract all sub module of mod
     N/A default_exclude N/A .svn _svn .git N/A default_exclude_ext N/A .pyc .pyo .bak .tmp N/A exclude N/A exclude N/A N/A exclude_ext N/A exclude_ext N/A N/A N/A N/A N/A N/A os path exists dst N/A N/A N/A N/A os makedirs dst N/A verbose N/A N/A N/A Make directory %s dst N/A r N/A N/A pkg resource_listdir mod path N/A N/A N/A N/A r exclude N/A r default_exclude N/A N/A N/A fpath N/A N/A N/A os path join path r N/A N/A N/A pkg resource_isdir mod fpath N/A N/A recursion N/A N/A N/A extract_dirs mod fpath N/A N/A N/A os path join dst r verbose exclude exclude_ext recursion replace N/A N/A ext N/A N/A N/A N/A os path splitext fpath N/A 1 N/A N/A N/A ext exclude_ext N/A ext default_exclude_ext N/A N/A N/A N/A extract_file mod fpath dst verbose replace N/A match N/A N/A f patterns N/A N/A fnmatch fnmatch N/A flag False N/A x patterns N/A N/A N/A fnmatch f x N/A N/A True N/A walk_dirs N/A N/A path include include_ext exclude exclude_ext recursion file_only use_default_pattern N/A None None None None True False True N/A N/A 
    path directory path
    resursion True will extract all sub module of mod
     N/A default_exclude N/A .svn _svn .git N/A default_exclude_ext N/A .pyc .pyo .bak .tmp N/A exclude N/A exclude N/A N/A exclude_ext N/A exclude_ext N/A N/A include_ext N/A include_ext N/A N/A include N/A include N/A N/A N/A N/A N/A N/A os path exists path N/A N/A StopIteration N/A r N/A N/A os listdir path N/A N/A N/A N/A match r exclude N/A use_default_pattern N/A r default_exclude N/A N/A N/A N/A include N/A r include N/A N/A N/A fpath N/A N/A N/A os path join path r N/A N/A N/A N/A os path isdir fpath N/A N/A N/A file_only N/A N/A N/A N/A N/A N/A N/A N/A os path normpath fpath replace \ / N/A recursion N/A N/A f N/A walk_dirs fpath include include_ext exclude exclude_ext recursion file_only N/A N/A N/A N/A N/A N/A N/A N/A os path normpath f replace \ / N/A N/A ext N/A N/A N/A N/A os path splitext fpath N/A 1 N/A N/A N/A ext exclude_ext N/A use_default_pattern N/A ext default_exclude_ext N/A N/A N/A N/A include_ext N/A ext include_ext N/A N/A N/A N/A N/A N/A N/A N/A N/A os path normpath fpath replace \ / N/A copy_dir N/A N/A src dst verbose check processor N/A False False None N/A N/A shutil _md5 N/A N/A filename N/A N/A N/A N/A N/A hashlib N/A a N/A N/A hashlib md5 N/A N/A N/A ImportError N/A N/A md5 N/A a N/A N/A md5 new N/A N/A N/A a update N/A N/A N/A file filename rb read N/A N/A N/A a digest N/A N/A N/A N/A N/A N/A os path exists dst N/A N/A N/A N/A os makedirs dst N/A verbose N/A N/A N/A Processing %s src N/A r N/A N/A os listdir src N/A N/A N/A r N/A .svn _svn .git N/A N/A N/A fpath N/A N/A N/A os path join src r N/A N/A N/A N/A os path isdir fpath N/A N/A N/A N/A N/A N/A os path abspath fpath N/A N/A N/A os path abspath dst N/A N/A N/A copy_dir fpath N/A N/A N/A os path join dst r verbose check processor N/A N/A N/A N/A ext N/A N/A N/A N/A os path splitext fpath N/A 1 N/A N/A ext N/A .pyc .pyo .bak .tmp N/A N/A N/A df N/A N/A N/A os path join dst r N/A check N/A N/A N/A N/A N/A os path exists df N/A N/A a N/A _md5 fpath N/A b N/A _md5 df N/A N/A a b N/A N/A N/A Error: Target file %s is already existed, and it not same as source one %s, so copy failed N/A fpath dst N/A N/A processor N/A N/A N/A processor fpath dst df N/A N/A N/A N/A N/A shutil copy2 fpath dst N/A verbose N/A N/A N/A Copy %s to %s N/A fpath dst N/A N/A processor N/A N/A N/A processor fpath dst df N/A N/A N/A N/A N/A shutil copy2 fpath dst N/A verbose N/A N/A N/A Copy %s to %s N/A fpath dst N/A copy_dir_with_check N/A N/A dirs dst verbose check processor N/A False True None N/A N/A d dirs N/A N/A N/A N/A N/A N/A os path exists d N/A N/A N/A N/A copy_dir d dst verbose check processor N/A check_apps_dir N/A N/A apps_dir N/A N/A N/A log logging N/A N/A N/A N/A N/A os path exists apps_dir N/A N/A N/A sys stderr N/A [Error] Can't find the apps_dir [%s], please check it out apps_dir N/A N/A N/A sys exit 1 N/A is_pyfile_exist N/A N/A dir pymodule N/A N/A N/A path N/A N/A N/A os path join dir N/A %s.py pymodule N/A N/A N/A N/A N/A os path exists path N/A N/A path N/A N/A N/A os path join dir N/A %s.pyc pymodule N/A N/A N/A N/A N/A os path exists path N/A N/A path N/A N/A N/A os path join dir N/A %s.pyo pymodule N/A N/A N/A N/A N/A os path exists path N/A N/A False N/A True N/A wraps N/A N/A src N/A N/A _f N/A N/A des N/A N/A f N/A N/A N/A args kwargs N/A uliweb application N/A application N/A N/A env N/A N/A application get_view_env N/A N/A k v N/A N/A env iteritems N/A N/A N/A N/A src func_globals N/A k v N/A N/A N/A src func_globals N/A env env N/A N/A des args kwargs N/A N/A N/A f __name__ N/A src __name__ N/A N/A N/A N/A f func_globals update N/A src func_globals N/A N/A f __doc__ N/A src __doc__ N/A N/A f __module__ N/A src __module__ N/A N/A N/A N/A f __dict__ update N/A src __dict__ N/A f N/A N/A _f N/A timeit N/A N/A func N/A N/A N/A log N/A N/A logging getLogger uliweb.app N/A time f N/A N/A N/A args kwargs N/A N/A begin N/A N/A time time N/A ret N/A func args kwargs N/A end N/A N/A time time N/A N/A %s.%s [%s]s N/A N/A func __module__ N/A func __name__ N/A end begin N/A ret N/A N/A wraps func N/A f N/A safe_unicode N/A N/A s encoding N/A utf-8 N/A uliweb.i18n.lazystr LazyString N/A N/A isinstance s unicode N/A N/A s N/A N/A N/A isinstance s LazyString N/A N/A N/A unicode s N/A N/A N/A unicode N/A str s encoding N/A safe_str N/A N/A s encoding N/A utf-8 N/A uliweb.i18n.lazystr LazyString N/A N/A isinstance s unicode N/A N/A N/A N/A s encode encoding N/A N/A N/A isinstance s LazyString N/A N/A N/A N/A N/A unicode s encode encoding N/A N/A N/A str s N/A get_var N/A N/A key N/A N/A f N/A N/A N/A N/A uliweb settings N/A N/A N/A settings get_var key N/A N/A f N/A get_choice N/A N/A choices value default N/A None N/A N/A N/A callable choices N/A N/A choices N/A choices N/A N/A N/A N/A dict choices get value default N/A simple_value N/A N/A v encoding none N/A utf-8 False N/A N/A datetime N/A decimal N/A N/A callable v N/A N/A v N/A v N/A N/A isinstance v N/A datetime datetime N/A N/A N/A N/A v strftime %Y-%m-%d %H:%M:%S N/A N/A N/A isinstance v N/A datetime date N/A N/A N/A N/A v strftime %Y-%m-%d N/A N/A N/A isinstance v N/A datetime time N/A N/A N/A N/A v strftime %H:%M:%S N/A N/A N/A isinstance v N/A decimal Decimal N/A N/A N/A str v N/A N/A N/A isinstance v unicode N/A N/A N/A N/A v encode encoding N/A N/A N/A isinstance v N/A tuple list N/A N/A s N/A N/A x v N/A N/A N/A N/A s append N/A simple_value x encoding none N/A s N/A N/A N/A isinstance v dict N/A N/A d N/A N/A N/A k v N/A N/A v iteritems N/A N/A N/A d N/A N/A simple_value k N/A simple_value v encoding none N/A d N/A N/A N/A v None N/A N/A none N/A N/A v N/A N/A N/A N/A v N/A N/A re_newline N/A N/A re compile \r\n|\r|\n str_value N/A N/A v encoding bool_int none newline_escape N/A utf-8 True NULL False N/A N/A datetime N/A decimal N/A N/A callable v N/A N/A v N/A v N/A N/A isinstance v N/A datetime datetime N/A N/A N/A N/A v strftime %Y-%m-%d %H:%M:%S N/A N/A N/A isinstance v N/A datetime date N/A N/A N/A N/A v strftime %Y-%m-%d N/A N/A N/A isinstance v N/A datetime time N/A N/A N/A N/A v strftime %H:%M:%S N/A N/A N/A isinstance v N/A decimal Decimal N/A N/A N/A str v N/A N/A N/A isinstance v N/A str unicode N/A N/A N/A isinstance v unicode N/A N/A v N/A N/A v encode encoding N/A newline_escape N/A N/A v N/A N/A re_newline sub \\n v N/A v N/A N/A N/A v None N/A N/A none N/A N/A N/A isinstance v bool N/A N/A bool_int N/A N/A v N/A N/A 1 N/A N/A 0 N/A N/A N/A str v N/A N/A N/A str v N/A norm_path N/A N/A path N/A N/A N/A N/A N/A N/A os path normpath N/A N/A N/A os path abspath path N/A N/A r_expand_path N/A N/A re compile \$\[(\w+)\] expand_path N/A N/A path N/A N/A N/A 
    Auto search some variables defined in path string, such as:
        $[PROJECT]/files
        $[app_name]/files
    for $[PROJECT] will be replaced with uliweb application apps_dir directory
    and others will be treated as a normal python package, so uliweb will
    use pkg_resources to get the path of the package
    
    update: 0.2.5 changed from ${} to $[]

    Also apply with os.path.expandvars(os.path.expanduser(path))
     uliweb application replace N/A N/A m N/A N/A N/A txt N/A N/A N/A m groups N/A 0 N/A N/A txt PROJECT N/A N/A N/A application apps_dir N/A N/A N/A N/A pkg resource_filename txt N/A N/A p N/A N/A re sub r_expand_path replace path N/A N/A N/A N/A os path expandvars N/A N/A N/A os path expanduser path N/A date_in N/A N/A d dates N/A N/A N/A 
    compare if d in dates. dates should be a tuple or a list, for example:
        date_in(d, [d1, d2])
    and this function will execute:
        d1 <= d <= d2
    and if d is None, then return False
     N/A N/A d N/A N/A False N/A N/A N/A dates N/A 0 d N/A dates N/A 1 N/A Serial N/A object N/A N/A 
    For json protocal, datetime will convert to string, and convert reversed be 
    be not datetime
     load N/A N/A cls s protocal N/A None N/A N/A json N/A N/A protocal N/A N/A N/A N/A cPickle loads s N/A N/A N/A protocal json N/A N/A N/A N/A json loads s N/A N/A N/A Exception N/A Can't support this protocal %s protocal N/A classmethod dump N/A N/A cls v protocal N/A None N/A uliweb json_dumps N/A N/A protocal N/A N/A N/A N/A cPickle dumps v N/A cPickle HIGHEST_PROTOCOL N/A N/A N/A protocal json N/A N/A N/A json_dumps v N/A N/A N/A Exception N/A Can't support this protocal %s protocal N/A classmethod N/A N/A urlparse QueryString N/A object N/A __init__ N/A N/A self url N/A N/A N/A N/A self url N/A str url N/A N/A N/A self scheme N/A self netloc N/A self script_root qs N/A self anchor N/A N/A self parse N/A N/A self qs N/A N/A urlparse parse_qs qs True N/A parse N/A N/A self N/A N/A N/A N/A N/A urlparse urlsplit N/A self url N/A __getitem__ N/A N/A self name N/A N/A N/A N/A N/A N/A self qs get name N/A N/A __setitem__ N/A N/A self name value N/A N/A N/A N/A N/A self qs N/A name N/A value N/A set N/A N/A self name value replace N/A False N/A N/A v N/A N/A N/A self qs setdefault name N/A N/A replace N/A N/A N/A N/A self qs N/A name N/A value N/A N/A N/A N/A v append value N/A self N/A __str__ N/A N/A self N/A N/A N/A urllib N/A qs N/A N/A urllib urlencode N/A self qs True N/A N/A N/A urlparse urlunsplit N/A N/A self scheme N/A self netloc N/A self script_root qs N/A self anchor N/A N/A query_string N/A N/A url replace N/A True kwargs N/A N/A q N/A QueryString url N/A N/A k v N/A N/A kwargs items N/A N/A N/A N/A q set k v replace N/A N/A str q N/A camel_to_ N/A N/A s N/A N/A N/A 
    Convert CamelCase to camel_case
     N/A s1 N/A N/A re sub (.)([A-Z][a-z]+) \1_\2 s N/A N/A N/A N/A N/A re sub ([a-z0-9])([A-Z]) \1_\2 s1 lower N/A application_path N/A N/A path N/A N/A N/A 
    Join application project_dir and path
     uliweb application N/A N/A N/A N/A os path join N/A application project_dir path N/A get_uuid N/A N/A type N/A 4 N/A N/A 
    Get uuid value
     N/A uuid N/A name N/A uuid N/A str type N/A u N/A getattr uuid name N/A N/A N/A u hex N/A pretty_dict N/A N/A d leading newline indent tabstop process N/A 0 4 None N/A N/A 
    Output pretty formatted dict, for example:
        
        d = {"a":"b",
            "c":{
                "d":"e",
                "f":"g",
                }
            }
        
    will output:
        
        a : 'b'
        c : 
            d : 'e'
            f : 'g'
        
     N/A N/A k v N/A N/A d items N/A N/A process N/A N/A N/A k v N/A process k v N/A N/A isinstance v dict N/A N/A N/A N/A %s%s : %s N/A N/A N/A indent tabstop leading N/A simple_value k newline N/A x N/A pretty_dict v leading leading newline newline indent N/A indent 1 tabstop tabstop N/A N/A N/A x N/A N/A N/A N/A %s%s : %s%s N/A N/A N/A indent tabstop leading N/A simple_value k N/A simple_value v newline N/A request_url N/A N/A req N/A None N/A N/A 
    Get full url of a request
     uliweb request N/A r N/A req request N/A request N/A N/A N/A r query_string N/A N/A N/A N/A N/A r path ? N/A r query_string N/A N/A N/A r path N/A N/A N/A flat_list N/A N/A N/A alist N/A N/A 
    Flat a tuple, list, single value or list of list to flat list
    e.g.
    
    >>> flat_list(1,2,3)
    [1, 2, 3]
    >>> flat_list(1)
    [1]
    >>> flat_list([1,2,3])
    [1, 2, 3]
    >>> flat_list([None])
    []
     N/A a N/A N/A x alist N/A N/A N/A x None N/A N/A N/A N/A isinstance x N/A tuple list N/A N/A N/A N/A a extend N/A i N/A i x N/A i None N/A N/A N/A N/A a append x N/A a N/A compare_dict N/A N/A da db N/A N/A N/A 
    Compare differencs from two dicts
     N/A sa N/A set N/A N/A da items N/A sb N/A set N/A N/A db items N/A diff N/A sa sb N/A N/A N/A dict N/A sa diff N/A dict N/A sb diff N/A get_caller N/A N/A skip N/A None N/A N/A 
    Get the caller information, it'll return: module, filename, line_no
     N/A inspect fnmatch fnmatch N/A N/A N/A stack N/A N/A inspect stack N/A N/A N/A N/A stack N/A None N/A N/A inspect currentframe N/A N/A N/A len stack 1 N/A N/A N/A N/A stack pop 0 N/A N/A skip N/A N/A isinstance skip N/A list tuple N/A N/A skip N/A skip N/A N/A skip N/A N/A ptn N/A N/A N/A N/A N/A os path splitext N/A N/A s replace \ / N/A 0 N/A s skip N/A frame stack N/A N/A N/A isinstance frame tuple N/A N/A N/A filename funcname lineno N/A N/A frame N/A 1 N/A frame N/A 3 N/A frame N/A 2 N/A N/A N/A filename funcname lineno N/A N/A N/A frame f_code co_filename N/A N/A frame f_code co_name N/A frame f_lineno N/A frame N/A found False N/A k ptn N/A N/A filename N/A N/A N/A N/A os path splitext N/A N/A filename replace \ / N/A 0 N/A N/A fnmatch filename k N/A N/A found True N/A N/A N/A found N/A N/A N/A filename lineno funcname N/A classonlymethod N/A classmethod N/A N/A 
    Use to limit the class method can only be called via class object, but not instance
    object
    
    >>> class A(object):
    ...     @classonlymethod
    ...     def p(cls):
    ...         print 'call p()'
    >>> A.p()
    call p()
    >>> a = A()
    >>> try:
    ...     a.p()        
    ... except Exception as e:
    ...     print e
    This method can only be called with class object.
     __get__ N/A N/A self instance owner N/A N/A N/A N/A instance None N/A N/A N/A AttributeError This method can only be called with class object. N/A N/A N/A N/A super classonlymethod self __get__ instance owner N/A N/A trim_path N/A N/A path length N/A 30 N/A N/A 
    trim path to specified length, for example:
    >>> a = '/project/apps/default/settings.ini'
    >>> trim_path(a)
    '.../apps/default/settings.ini'
    
    The real length will be length-4, it'll left '.../' for output.
     N/A s N/A N/A N/A N/A path replace \ / split / N/A t -1 N/A i N/A range N/A N/A len s 1 -1 -1 N/A N/A t N/A N/A N/A len N/A s N/A i t 1 N/A N/A t N/A length 4 N/A N/A N/A N/A .../ N/A N/A / join N/A s N/A N/A i 1 N/A cached_property N/A object N/A N/A 
    cached function return value
     __init__ N/A N/A self func N/A N/A N/A N/A self value _Default N/A N/A self func func N/A __get__ N/A N/A self obj type N/A None N/A N/A value N/A self value N/A N/A N/A self value _Default N/A N/A value N/A N/A self func type N/A N/A self value value N/A value N/A N/A get_temppath N/A N/A prefix suffix dir N/A N/A N/A tempfile N/A N/A N/A tempfile mkdtemp suffix suffix prefix prefix dir dir N/A get_tempfilename2 N/A N/A prefix suffix dir N/A N/A N/A tempfile N/A N/A N/A tempfile mkstemp suffix suffix prefix prefix dir dir N/A get_tempfilename N/A N/A prefix suffix dir N/A N/A N/A N/A N/A get_tempfilename2 prefix suffix dir N/A 1 N/A get_configrable_object N/A N/A key section cls N/A None N/A N/A 
    if obj is a class, then check if the class is subclass of cls
    or it should be object path, and it'll be imported by import_attr
     uliweb UliwebError settings N/A inspect N/A N/A N/A N/A inspect isclass key cls N/A issubclass key cls N/A N/A key N/A N/A N/A isinstance key N/A str unicode N/A N/A path N/A N/A N/A settings N/A section get key N/A path N/A N/A _cls N/A import_attr path N/A _cls N/A N/A N/A UliwebError N/A Can't find section name %s in settings section N/A N/A N/A UliwebError N/A Key %r should be subclass of %r object or string path format! N/A key cls N/A format_size N/A N/A size N/A N/A N/A 
    Convert size to XB, XKB, XMB, XGB
    :param size: length value
    :return: string value with size unit
     N/A units N/A B KB MB GB N/A unit N/A n size N/A old_n n N/A value size N/A i units N/A N/A old_n n N/A N/A x y N/A divmod n 1024 N/A N/A x 0 N/A N/A unit i N/A value y N/A N/A n x N/A unit i N/A value old_n N/A N/A N/A str value unit N/A convert_bytes N/A N/A n N/A N/A N/A 
    Convert a size number to 'K', 'M', .etc
     N/A symbols N/A K M G T P E Z Y N/A prefix N/A N/A N/A i s N/A enumerate symbols N/A N/A N/A prefix N/A s N/A 1 N/A N/A i 1 10 N/A s N/A reversed symbols N/A N/A N/A n N/A prefix N/A s N/A N/A value N/A N/A float n N/A prefix N/A s N/A N/A %.1f%s N/A value s N/A N/A %sB n N/A