Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num If Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Num SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Slice Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num ExceptHandler type NameLoad name NameStore body Pass ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num For TupleStore NameStore NameStore Call NameLoad NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpAdd ListLoad Call NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Break orelse Assign NameStore BinOpAdd ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpAdd Str NameLoad If UnaryOpNot NameLoad body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
pgxnclient -- command line entry point
 N/A os N/A sys pgxnclient find_script pgxnclient.i18n _ pgxnclient.errors PgxnException UserAbort pgxnclient.commands get_option_parser load_commands run_command main N/A N/A argv N/A None N/A N/A 
    The program main function.

    The function is still relatively self contained: it can be called with
    arguments and raises whatever exception, so it's the best entry point
    for whole system testing.
     N/A N/A argv None N/A N/A argv N/A N/A sys argv N/A 1 N/A N/A load_commands N/A parser N/A get_option_parser N/A opt N/A N/A parser parse_args argv N/A N/A run_command opt parser N/A script N/A N/A N/A N/A N/A 
    Execute the program as a script.

    Set up logging, invoke main() using the user-provided arguments and handle
    any exception raised.
     N/A logging N/A N/A N/A logging basicConfig format %(levelname)s: %(message)s datefmt %Y-%m-%d %H:%M:%S stream N/A sys stdout N/A logger N/A N/A logging getLogger N/A script N/A N/A sys argv N/A 0 N/A args N/A N/A sys argv N/A 1 N/A N/A N/A N/A N/A N/A os path basename script startswith pgxn- N/A N/A N/A N/A args insert 0 N/A N/A N/A N/A os path basename script N/A 5 N/A N/A N/A sys argv N/A 0 N/A N/A N/A os path join N/A N/A N/A os path dirname script pgxn N/A N/A N/A N/A main args N/A N/A N/A UserAbort N/A e N/A N/A N/A N/A logger info %s e N/A N/A N/A sys exit 1 N/A N/A PgxnException N/A e N/A N/A N/A N/A logger error %s e N/A N/A N/A sys exit 1 N/A N/A SystemExit N/A e N/A N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger error N/A _ unexpected error: %s - %s N/A N/A e __class__ __name__ e exc_info True N/A N/A N/A sys exit 1 N/A N/A BaseException N/A e N/A N/A N/A N/A sys exit 1 N/A command_dispatch N/A N/A argv N/A None N/A N/A 
    Entry point for a script to dispatch commands to external scripts.

    Upon invocation of a command ``pgxn cmd --arg``, locate pgxn-cmd and
    execute it with --arg arguments.
     N/A N/A argv None N/A N/A argv N/A N/A sys argv N/A 1 N/A N/A icmd cmd N/A enumerate argv N/A N/A N/A N/A N/A cmd startswith - N/A N/A argv N/A N/A N/A N/A _get_exec cmd N/A argv N/A icmd N/A argv N/A N/A icmd 1 N/A N/A N/A argv N/A N/A N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A sys argv N/A 0 pgxnclient argv N/A N/A N/A N/A os access N/A argv N/A 0 N/A os X_OK N/A N/A N/A N/A argv insert 0 N/A sys executable N/A N/A N/A os execv N/A argv N/A 0 argv N/A _get_exec N/A N/A cmd N/A N/A N/A fn N/A find_script N/A pgxn- cmd N/A N/A fn N/A N/A N/A sys stderr N/A pgxn: unknown command: '%s'. See 'pgxn --help' cmd N/A N/A N/A sys exit 2 N/A fn N/A N/A N/A __name__ __main__ N/A N/A N/A script