Module Import alias Import alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict If NameLoad body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad CompareEq NameLoad Str orelse Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad NameLoad orelse Return TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Dict If NameLoad body For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad TupleLoad NameLoad IfExp CompareEq NameLoad Str NameLoad NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad IfExp CompareEq NameLoad Str NameLoad NameLoad orelse Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore Dict If NameLoad body For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad Num If CompareGt NameLoad Num body Return BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr UnaryOpNot NameLoad Call AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore TupleLoad Str Str Num If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore IfExp NameLoad UnaryOpUSub Call NameLoad NameLoad Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore IfExp UnaryOpNot NameLoad Str NameLoad Assign NameStore ListLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad Call AttributeLoad NameLoad attr Str body Continue If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A os N/A math parse_kv_as_dict N/A N/A filters convert_boolean N/A False N/A N/A 
    Parse list of "key=value" into dict
    :param filters: list
    :param convert_boolean: boolean
    :return: dict
     N/A result N/A N/A filters N/A N/A x filters N/A N/A N/A k v N/A N/A x split = 2 N/A convert_boolean N/A N/A N/A N/A N/A v lower true N/A N/A v True N/A N/A N/A N/A N/A v lower false N/A N/A v False N/A N/A result N/A k v N/A result N/A parse_volume_bindings N/A N/A volumes N/A N/A N/A 
    Parse volumes into a dict.
    :param volumes: list of strings
    :return: dict
     parse_volume N/A N/A v N/A N/A N/A N/A : v N/A N/A parts N/A N/A v split : N/A N/A N/A len parts 2 N/A N/A N/A hp cp ro N/A N/A parts N/A 0 N/A parts N/A 1 N/A parts N/A 2 N/A N/A hp cp N/A ro ro N/A N/A N/A hp cp N/A N/A parts N/A 0 N/A parts N/A 1 N/A N/A hp cp False N/A N/A N/A None v False N/A N/A result N/A N/A volumes N/A N/A vol volumes N/A N/A N/A host_path container_path read_only N/A parse_volume vol N/A host_path N/A N/A N/A result N/A host_path N/A bind ro container_path read_only N/A result N/A parse_exposed_ports N/A N/A ps N/A N/A N/A 
    Parse array of exposed ports (not public).

    [1000] -> { 1000: None }
    [1000-1002] -> { 1000: None, 1001: None, 1002: None }

    :return: dict
     N/A result N/A N/A p ps N/A N/A N/A - p N/A N/A N/A p1 p2 N/A N/A p split - N/A x N/A range p1 N/A p2 1 N/A N/A N/A result N/A x None N/A N/A N/A result N/A p None N/A result N/A parse_port_bindings N/A N/A bindings N/A N/A N/A 
    Parse array of string port bindings into a dict. For example:
        ['4567:1111', '2222']
    becomes
        port_bindings={
            1111: 4567,
            2222: None
        }
    and
        ['127.0.0.1:4567:1111']
    becomes
        port_bindings={
            1111: ('127.0.0.1', 4567)
        }
    :param bindings: array of string
    :return: dict
     parse_port_mapping N/A N/A s N/A N/A N/A 
        Parse single port mapping.
         N/A N/A : s N/A N/A parts N/A N/A s split : N/A N/A N/A len parts 2 N/A N/A N/A ip hp cp N/A N/A parts N/A 0 N/A parts N/A 1 N/A parts N/A 2 N/A N/A cp N/A ip N/A N/A hp None hp N/A N/A N/A hp cp N/A N/A parts N/A 0 N/A parts N/A 1 N/A N/A cp N/A N/A hp None hp N/A N/A N/A s None N/A N/A result N/A N/A bindings N/A N/A binding bindings N/A N/A N/A container_port mapping N/A parse_port_mapping binding N/A N/A result N/A container_port mapping N/A result N/A filesize N/A N/A size N/A N/A N/A 
    Pretty-print file size from bytes.
     N/A size_name N/A B KB MB GB TB PB EB ZB YB N/A N/A N/A int size 0 N/A N/A i N/A int N/A N/A math floor N/A N/A math log size 1024 N/A p N/A N/A math pow 1024 i N/A s N/A round N/A size p 3 N/A N/A s 0 N/A N/A N/A %s %s N/A s N/A size_name N/A i N/A 0 B N/A complete_path N/A N/A curr_dir last_dir N/A N/A N/A 
    Return the path to complete that matches the last entered component.
    If the last entered component is ~, expanded path would not
    match, so return all of the available paths.
    :param curr_dir: string
    :param last_dir: string
    :return: string
     N/A N/A N/A last_dir N/A N/A curr_dir startswith last_dir N/A N/A curr_dir N/A N/A N/A last_dir ~ N/A N/A N/A N/A N/A os path join last_dir curr_dir N/A parse_path N/A N/A root_dir N/A N/A N/A 
    Split path into head and last component for the completer.
    Also return position where last component starts.
    :param root_dir: path
    :return: tuple of (string, string, int)
     N/A N/A base_dir last_dir position N/A 0 N/A root_dir N/A N/A N/A base_dir last_dir N/A N/A N/A os path split root_dir N/A position N/A last_dir N/A N/A len last_dir 0 N/A N/A base_dir last_dir position N/A list_dir N/A N/A root_dir dirs_only include_special N/A False False N/A N/A 
    List directory.
    :param root_dir: string: directory to list
    :param dirs_only: boolean
    :param include_special: boolean
    :return: list
     N/A root_dir N/A N/A root_dir . root_dir N/A res N/A N/A N/A ~ root_dir N/A N/A root_dir N/A N/A N/A os path expanduser root_dir N/A N/A N/A N/A N/A os path exists root_dir N/A N/A N/A root_dir _ N/A N/A N/A os path split root_dir N/A N/A N/A N/A os path exists root_dir N/A N/A name N/A N/A os listdir root_dir N/A N/A path N/A N/A N/A os path join root_dir name N/A N/A N/A include_special N/A N/A name startswith . N/A N/A N/A N/A dirs_only N/A N/A N/A N/A os path isdir path N/A N/A N/A N/A N/A res append name N/A res N/A