Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body With Call NameLoad AttributeLoad NameLoad attr NameStore body Return Call NameLoad Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Str NameStore body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str keyword Str keyword Str keyword NameLoad Expr Call NameLoad Str Str keyword Str keyword Str keyword NameLoad Expr Call NameLoad Str Str keyword AttributeLoad NameLoad attr keyword Str keyword Str Expr Call NameLoad Str Str keyword Num keyword Str keyword NameLoad Expr Call NameLoad Str Str keyword Num keyword Str keyword NameLoad Expr Call NameLoad Str Str keyword Str keyword Str keyword NameLoad Expr Call NameLoad Str Str keyword Num keyword Str keyword NameLoad Expr Call NameLoad Str Str keyword Str keyword NameLoad keyword Str Expr Call NameLoad Str Str keyword BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A logging N/A os.path N/A sys argparse ArgumentParser utils json_loads N/A logger N/A N/A logging getLogger config Config N/A dict N/A N/A Config  reads json file config firstly, then
      parses command line and override the file config settings

    >>> from utils import log_config
    >>> log_config('test_config', True)
    >>> config = Config()
    >>> config.server
    '127.0.0.1'
    >>> config['server']
    '127.0.0.1'
    >>> config.test_attr1 = 'test_attr1'
    >>> config.test_attr1
    'test_attr1'
    >>> config['test_attr1']
    'test_attr1'
    >>> config['test_attr2'] = 'test_attr2'
    >>> config.test_attr2
    'test_attr2'
    >>> config['test_attr2']
    'test_attr2'
    >>> config['test_attr2'] = 'new_test_attr2'
    >>> config['test_attr2']
    'new_test_attr2'

     current N/A N/A default_path args N/A path2json N/A sys argv N/A N/A N/A N/A hasattr Config _current N/A N/A N/A Config _current N/A Config default_path args N/A N/A Config _current N/A staticmethod __init__ N/A N/A self default_path args N/A path2json N/A sys argv N/A N/A N/A N/A N/A super Config self __init__ N/A N/A self args args N/A N/A self default_path default_path N/A N/A N/A self config_opt N/A __getattr__ N/A N/A self name N/A N/A N/A N/A self N/A name N/A __setattr__ N/A N/A self name val N/A N/A N/A N/A self N/A name val N/A config_opt N/A N/A self N/A N/A N/A opt N/A N/A self parse_cmdline N/A N/A self server N/A opt server N/A N/A self password N/A opt password N/A N/A self server_port N/A opt server_port N/A N/A self local_port N/A opt local_port N/A N/A self method N/A opt method N/A N/A self timeout N/A opt timeout N/A N/A self debug N/A opt debug N/A get_file_opt N/A N/A self N/A N/A N/A p N/A ArgumentParser add_help False N/A N/A N/A p add_argument -c --config default N/A self default_path help config.json path metavar FILE N/A N/A opt _ N/A N/A p parse_known_args N/A self args N/A N/A N/A N/A os path exists N/A opt config N/A N/A N/A open N/A opt config f N/A N/A N/A json_loads N/A N/A f read N/A N/A N/A N/A logger warning N/A the json file path `%s` is not exists N/A opt config N/A N/A N/A config_file_opt N/A N/A self path2json N/A N/A N/A N/A N/A N/A os path exists path2json N/A N/A N/A N/A codecs open N/A opt config r encoding ascii f N/A N/A json_con N/A json_loads N/A N/A f read N/A N/A self server N/A N/A self server N/A N/A json_con get server None N/A N/A self password N/A N/A self password N/A N/A json_con get password None N/A N/A self server_port N/A N/A self server_port N/A N/A json_con get server_port None N/A N/A self local_port N/A N/A self local_port N/A N/A json_con get local_port None N/A N/A self method N/A N/A self method N/A N/A json_con get method table N/A N/A self timeout N/A N/A self timeout N/A N/A json_con get timeout None N/A N/A self debug N/A N/A self debug N/A N/A json_con get debug False N/A N/A N/A N/A logger warning N/A the json file path `%s` is not exists path2json N/A parse_cmdline N/A N/A self N/A N/A fukei __version__ N/A parser N/A ArgumentParser usage usage: PROG [options] N/A _ N/A parser add_argument N/A N/A _ -s --server default 127.0.0.1 help Remote server, IP address or domain (default %(default)r) type str N/A N/A _ -k --password default 123 help Password, should be same in client and server sides (default %(default)r) type str N/A N/A _ -c --config default N/A self default_path help config.json path (default %(default)r) metavar FILE N/A N/A _ -p --server-port default 8388 help Remote server port (default %(default)r) type int N/A N/A _ -l --local-port default 1080 help Local client port (default %(default)r) type int N/A N/A _ -m --method default table help Encryption method (default %(default)r) type str N/A N/A _ -t --timeout default 10 help connection timeout (default %(default)r) type int N/A N/A _ -d --debug action store_true default False help open debug mode (default %(default)r) N/A N/A _ -v --version help N/A Show Fukei version %s __version__ N/A c N/A N/A self get_file_opt N/A N/A N/A parser set_defaults c N/A N/A opt _ N/A N/A parser parse_known_args N/A self args N/A opt N/A N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod