Module Import alias ImportFrom alias identifier Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults kwarg body Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr BinOpMult ListLoad Str Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num Num body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad Num Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr TupleLoad Str Str Assign NameStore CompareIn NameLoad TupleLoad Str Str TryExcept body Expr Call NameLoad NameLoad Str keyword NameLoad keyword IfExp UnaryOpNot NameLoad NameLoad Str keyword BinOpAdd NameLoad Str keyword NameLoad keyword Num keyword BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr Num Num keyword BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr Num Num keyword Str keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpAdd BinOpMult Call NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad Str While CompareEq NameLoad Call NameLoad Str body Assign NameStore Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Str keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad Str keyword NameLoad keyword Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad Str keyword AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Str Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num Num Num body Expr Str Assign NameStore AttributeLoad NameLoad attr Print Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Print Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Num For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Print Str For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Print Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num While BoolOpOr CompareIn AttributeLoad NameLoad attr TupleLoad Str Str CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad BinOpAdd NameLoad Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Num Num BinOpSub NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Print Str Assign NameStore Call NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpDiv AttributeLoad BinOpSub NameLoad NameLoad attr Num Num While CompareLt NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Num Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr keyword Num Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareLtLt NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareLtLt NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareLt AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call NameLoad NameLoad Str NameLoad Assign NameStore NameLoad Print Str decorator_list FunctionDef arguments args defaults body ImportFrom alias Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A datetime decimal Decimal D N/A random N/A string N/A sys faker Factory psycopg2 IntegrityError liberapay.billing.exchanges record_exchange_result _record_transfer_result liberapay.constants MAX_TIP MIN_TIP liberapay.models.exchange_route ExchangeRoute liberapay.models.participant Participant liberapay.models community N/A faker N/A N/A Factory create _fake_thing N/A N/A db tablename N/A kw N/A N/A N/A cols vals N/A zip N/A N/A kw items N/A cols N/A N/A ,  join cols N/A placeholders N/A N/A ,  join N/A N/A %s N/A len vals N/A N/A N/A db one N/A N/A 
        INSERT INTO {} ({}) VALUES ({}) RETURNING *
     format tablename cols placeholders vals N/A fake_text_id N/A N/A size chars N/A 6 N/A N/A string ascii_lowercase N/A string digits N/A N/A Create a random text id.
     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 fake_sentence N/A N/A start stop N/A 1 100 N/A N/A Create a sentence of random length.
     N/A N/A N/A faker sentence N/A N/A random randrange start stop N/A fake_participant N/A N/A db kind is_admin N/A None False N/A N/A Create a fake User.
     N/A username N/A N/A N/A faker first_name N/A fake_text_id 3 N/A kind N/A kind N/A N/A random choice N/A individual organization N/A is_a_person N/A kind N/A individual organization N/A N/A N/A N/A _fake_thing db participants username username password N/A N/A is_a_person None x email N/A username @example.org is_admin is_admin balance 0 hide_giving N/A is_a_person N/A N/A N/A random randrange 5 0 hide_receiving N/A is_a_person N/A N/A N/A random randrange 5 0 status active join_time N/A N/A faker date_time_this_year kind kind mangopay_user_id username mangopay_wallet_id -1 N/A N/A N/A IntegrityError N/A N/A N/A fake_participant db is_admin N/A N/A N/A Participant from_username username N/A fake_community N/A N/A db creator N/A N/A N/A Create a fake community
     N/A name N/A N/A community normalize N/A N/A faker city N/A c N/A N/A creator create_community name N/A N/A N/A creator update_community_status memberships True N/A c id N/A c N/A fake_tip_amount N/A N/A N/A N/A N/A amount N/A N/A N/A D N/A N/A random random N/A MAX_TIP MIN_TIP MIN_TIP N/A decimal_amount N/A N/A N/A D amount quantize N/A D .01 N/A N/A decimal_amount N/A D 0.00 N/A N/A decimal_amount N/A fake_tip_amount N/A decimal_amount N/A fake_tip N/A N/A db tipper tippee N/A N/A N/A Create a fake tip.
     N/A N/A _fake_thing db tips ctime N/A N/A faker date_time_this_year mtime N/A N/A faker date_time_this_month tipper N/A tipper id tippee N/A tippee id amount N/A fake_tip_amount N/A fake_elsewhere N/A N/A db participant platform N/A N/A N/A Create a fake elsewhere.
     N/A N/A _fake_thing db elsewhere platform platform user_id N/A fake_text_id user_name N/A participant id participant N/A participant id extra_info None N/A fake_transfer N/A N/A db tipper tippee amount timestamp N/A N/A N/A status succeeded N/A t N/A _fake_thing db transfers timestamp timestamp tipper N/A tipper id tippee N/A tippee id amount amount context tip status status N/A N/A _record_transfer_result db N/A t id status N/A t N/A fake_exchange N/A N/A db participant amount fee vat timestamp N/A N/A N/A route N/A N/A ExchangeRoute from_network participant mango-cc N/A N/A route N/A N/A route N/A _fake_thing db exchange_routes participant N/A participant id network mango-cc address -1 error one_off False N/A e N/A _fake_thing db exchanges timestamp timestamp participant N/A participant id amount amount fee fee vat vat status pre route N/A route id N/A N/A record_exchange_result db N/A e id succeeded participant N/A e N/A populate_db N/A N/A website num_participants num_tips num_teams num_transfers num_communities N/A 100 200 5 5000 20 N/A N/A Populate DB with fake data.
     N/A db N/A website db N/A Making Participants N/A participants N/A N/A i N/A range num_participants N/A N/A N/A N/A participants append N/A fake_participant db N/A Making Teams N/A teams N/A N/A i N/A range num_teams N/A N/A team N/A fake_participant db kind group N/A members N/A N/A random sample participants N/A N/A random randint 1 3 N/A p members N/A N/A N/A N/A team add_member p N/A N/A N/A teams append team N/A N/A N/A participants extend teams N/A Making Elsewheres N/A platforms N/A N/A p name N/A p N/A website platforms N/A p participants N/A N/A num_elsewheres N/A N/A random randint 0 3 N/A platform_name N/A N/A random sample platforms num_elsewheres N/A N/A N/A fake_elsewhere db p platform_name N/A Making Communities N/A i N/A range num_communities N/A N/A creator N/A N/A random sample participants 1 N/A community N/A fake_community db N/A creator N/A 0 N/A members N/A N/A random sample participants N/A N/A random randint 1 3 N/A p members N/A N/A N/A N/A p update_community_status memberships True N/A community id N/A Making Tips N/A tips N/A N/A i N/A range num_tips N/A N/A N/A tipper tippee N/A N/A random sample participants 2 N/A N/A N/A tips append N/A fake_tip db tipper tippee N/A transfers N/A N/A i N/A range num_transfers N/A N/A N/A tipper tippee N/A N/A random sample participants 2 N/A N/A N/A N/A tipper kind N/A group community N/A N/A tippee kind N/A group community N/A N/A N/A tipper tippee N/A N/A random sample participants 2 N/A N/A N/A N/A sys stdout write N/A 
Making Transfers (%i/%i) N/A N/A i 1 num_transfers N/A N/A N/A N/A sys stdout flush N/A amount N/A fake_tip_amount N/A ts N/A N/A faker date_time_this_year N/A N/A fake_exchange db tipper amount 0 0 N/A ts N/A N/A datetime timedelta days 1 N/A N/A N/A transfers append N/A fake_transfer db tipper tippee amount ts N/A N/A min_date N/A min N/A min N/A N/A x ctime N/A x tips N/A min N/A N/A x timestamp N/A x transfers N/A max_date N/A max N/A max N/A N/A x ctime N/A x tips N/A max N/A N/A x timestamp N/A x transfers N/A payday_counter 1 N/A date min_date N/A paydays_total N/A N/A N/A N/A max_date min_date days 7 1 N/A N/A date max_date N/A N/A N/A N/A N/A sys stdout write N/A 
Making Paydays (%i/%i) N/A payday_counter paydays_total N/A N/A N/A N/A sys stdout flush N/A payday_counter 1 N/A end_date N/A date N/A N/A datetime timedelta days 7 N/A week_tips N/A x N/A x tips N/A date N/A x ctime end_date N/A week_transfers N/A x N/A x transfers N/A date N/A x timestamp end_date N/A week_participants N/A x N/A x participants N/A N/A x join_time end_date N/A actives N/A set N/A tippers N/A set N/A xfers N/A week_tips week_transfers N/A N/A N/A N/A actives update N/A N/A x tipper N/A x xfers N/A N/A N/A actives update N/A N/A x tippee N/A x xfers N/A N/A N/A tippers update N/A N/A x tipper N/A x xfers N/A payday N/A ts_start ts_end ntips ntransfers nparticipants ntippers nactive transfer_volume date end_date N/A len week_tips N/A len week_transfers N/A len week_participants N/A len tippers N/A len actives N/A sum N/A N/A x amount N/A x week_transfers N/A N/A _fake_thing db paydays payday N/A date end_date N/A N/A main N/A N/A N/A N/A liberapay.main website N/A N/A populate_db website N/A N/A N/A N/A website db self_check N/A N/A N/A __name__ __main__ N/A N/A N/A main