Module ImportFrom alias alias Import alias Import alias ImportFrom alias alias alias alias Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore NameStore Call NameLoad Call NameLoad Str BinOpMod Str NameLoad If BoolOpAnd NameLoad UnaryOpNot Call NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Str Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad body With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Dict Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Num For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num body AugAssignAdd NameStore BinOpMult BinOpPow Num NameLoad Call NameLoad BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body AugAssignAdd NameStore Num Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq Call NameLoad NameLoad Num body Assign NameStore NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword Call NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Return Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list
N/A __future__ absolute_import print_function N/A glob N/A json os.path basename exists expanduser join N/A re N/A sys pkg_resources parse_version get_index_path N/A N/A version only_existing allow_similar N/A None False True N/A N/A Return the path to the index file for the given version.

    If only_existing is True, checks if the db file exists.  An error is raised
    if allow_similar is False.  If file doesn't exist and allow_similar is
    True, the closest matching version's db is returned.

     N/A N/A version None N/A N/A version N/A _get_current_version N/A path_ path N/A expanduser N/A join ~/.cinspect N/A index-%s.json version N/A N/A only_existing N/A N/A exists path N/A N/A allow_similar N/A N/A files N/A N/A glob glob N/A expanduser N/A join ~/.cinspect index*.json N/A path N/A _get_most_similar version files N/A N/A path None N/A N/A path None N/A N/A N/A OSError N/A Index path does not exist: %s path_ N/A path N/A read_index N/A N/A db N/A N/A N/A  Read the index and return the data.

    Returns an empty dictionary if no index exists.

     N/A N/A exists db N/A N/A N/A open db f N/A N/A data N/A N/A json load f N/A N/A data N/A N/A data N/A write_index N/A N/A db data N/A N/A N/A  Read the index and return the data.  N/A N/A open db w f N/A N/A N/A N/A json dump data f indent 2 N/A N/A VERSION_RE N/A N/A re compile index-([0-9.]+).json _distance N/A N/A version N/A N/A key N/A N/A v N/A N/A N/A score 0 N/A N/A i N/A m n N/A enumerate N/A zip N/A v N/A -2 -1 N/A version N/A -2 -1 N/A N/A score N/A N/A 10 i N/A abs N/A N/A int m N/A int n N/A N/A N/A v N/A -1 N/A version N/A -1 N/A N/A score 0.5 N/A score N/A N/A key N/A _get_current_version N/A N/A N/A N/A N/A version N/A N/A {}.{}.{} format N/A N/A sys version_info major N/A N/A sys version_info minor N/A N/A sys version_info micro N/A version N/A _get_most_similar N/A N/A version names N/A N/A N/A N/A N/A len names 0 N/A N/A path None N/A N/A N/A N/A len names 1 N/A N/A path N/A names N/A 0 N/A N/A versions N/A N/A _get_version name N/A name names N/A v_min N/A min versions key N/A _distance N/A parse_version version N/A path N/A names N/A N/A N/A versions index v_min N/A path N/A _get_version N/A N/A path N/A N/A N/A v N/A N/A VERSION_RE search N/A basename path N/A N/A v None N/A N/A N/A RuntimeError Invalid index name: Should be index-x.y.z.json N/A N/A parse_version N/A N/A N/A v groups N/A 0 N/A