Module ImportFrom alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr Str body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad ListLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpSub Call NameLoad NameLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr NameLoad Num Assign NameStore BinOpAdd ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad NameLoad Slice NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr While CompareNotEq SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr While NameLoad body If CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword NameLoad Continue If UnaryOpNot NameLoad body If AttributeLoad NameLoad attr body For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str If AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For NameStore NameLoad body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Assign AttributeStore NameLoad attr Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Continue Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpDiv BinOpMult NameLoad AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore TupleLoad BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareLt NameLoad NameLoad body Continue If CompareGt NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad BinOpMod Str NameLoad AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpMod Str NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr decorator_list decorator_list
N/A __future__ division unicode_literals N/A hashlib N/A logging N/A os N/A shelve fnmatch fnmatch utils is_unsplitable get_root_of_unsplitable N/A logger N/A N/A logging getLogger __name__ Database N/A object N/A N/A hash_mode_size_varying 10.0 __init__ N/A N/A self db_file paths ignore_files normal_mode unsplitable_mode exact_mode hash_name_mode hash_size_mode hash_slow_mode N/A N/A N/A 
        Database used to match files and torrents.
         N/A N/A self db N/A N/A shelve open db_file N/A N/A self db_file db_file N/A N/A self paths paths N/A N/A self ignore_files N/A N/A N/A self normalize_filename x N/A x ignore_files N/A N/A self normal_mode normal_mode N/A N/A self unsplitable_mode unsplitable_mode N/A N/A self exact_mode exact_mode N/A N/A self hash_name_mode hash_name_mode N/A N/A self hash_size_mode hash_size_mode N/A N/A self hash_slow_mode hash_slow_mode N/A N/A self hash_mode N/A hash_name_mode hash_size_mode hash_slow_mode N/A N/A self hash_size_table None N/A truncate N/A N/A self N/A N/A N/A 
        Truncates the database
         N/A N/A N/A logger info Truncated the database N/A N/A N/A N/A self db close N/A N/A self db N/A N/A shelve open N/A self db_file flag n N/A insert_into_database N/A N/A self root f mode prefix unsplitable_name N/A None None N/A N/A 
        Wraps the database insert to catch exceptions
         N/A N/A N/A N/A N/A self _insert_into_database root f mode prefix unsplitable_name N/A N/A N/A UnicodeDecodeError N/A N/A N/A N/A logger error N/A Failed to insert %r / %r / %r N/A root f mode N/A _insert_into_database N/A N/A self root f mode prefix unsplitable_name N/A None None N/A N/A 
        Does the actual insertion into the database.
         N/A path N/A N/A N/A os path abspath N/A N/A N/A os path join root f N/A N/A N/A N/A os access path N/A os R_OK N/A N/A N/A N/A logger warning N/A Path %r is not accessible, skipping path N/A N/A N/A mode exact N/A N/A key N/A N/A self keyify prefix f N/A N/A key N/A self db N/A N/A N/A N/A self db N/A key N/A N/A N/A self db N/A key N/A path N/A N/A N/A N/A self db N/A key N/A path N/A N/A normalized_filename N/A N/A self normalize_filename f N/A size N/A N/A N/A os path getsize path N/A N/A N/A mode startswith hash_ N/A N/A N/A mode hash_store_name N/A N/A key N/A N/A self keyify normalized_filename N/A N/A N/A mode hash_store_size N/A N/A key N/A str N/A s:%i size N/A N/A N/A self db N/A key N/A N/A N/A N/A self db get key N/A N/A path N/A N/A N/A mode unsplitable N/A N/A split_root N/A N/A root split N/A os sep N/A p_index N/A N/A N/A len split_root N/A N/A N/A split_root N/A -1 index unsplitable_name 1 N/A p N/A N/A N/A N/A self normalize_filename x N/A x N/A split_root N/A p_index N/A normalized_filename N/A key N/A N/A self keyify size p N/A N/A N/A mode normal N/A N/A key N/A N/A self keyify size normalized_filename N/A N/A key N/A self db N/A N/A old_inode N/A N/A N/A os stat N/A N/A self db N/A key st_ino N/A new_inode N/A N/A N/A os stat path st_ino N/A N/A old_inode new_inode N/A N/A N/A N/A logger warning N/A Duplicate key %s and %s N/A path N/A N/A self db N/A key N/A N/A N/A self db N/A key path N/A skip_file N/A N/A self f N/A N/A N/A 
        Checks if a filename is in the skiplist
         N/A normalized_filename N/A N/A self normalize_filename f N/A ignore_file N/A self ignore_files N/A N/A N/A fnmatch normalized_filename ignore_file N/A N/A True N/A False N/A rebuild N/A N/A self paths N/A None N/A N/A 
        Scans the paths for files and rebuilds the database.
         N/A paths N/A N/A N/A N/A logger info Just adding new paths N/A N/A N/A N/A logger info Rebuilding database N/A N/A N/A self truncate N/A paths N/A self paths N/A unsplitable_paths N/A set N/A N/A N/A self unsplitable_mode N/A self exact_mode N/A N/A N/A N/A logger info Special modes enabled, doing a preliminary scan N/A root_path paths N/A N/A N/A N/A logger info N/A Preliminary scanning %s root_path N/A N/A root dirs files N/A N/A os walk root_path N/A N/A N/A is_unsplitable files N/A N/A sep_root N/A N/A root split N/A os sep N/A name N/A get_root_of_unsplitable N/A N/A root split N/A os sep N/A N/A N/A sep_root N/A -1 name N/A N/A N/A N/A sep_root pop N/A path N/A N/A N/A os path join sep_root N/A N/A N/A logger debug N/A Found unsplitable path %r path N/A N/A N/A unsplitable_paths add path N/A N/A N/A logger info N/A Done preliminary scanning %s root_path N/A root_path paths N/A N/A N/A N/A logger info N/A Scanning %s root_path N/A N/A root dirs files N/A N/A os walk root_path N/A N/A unsplitable False N/A N/A N/A self unsplitable_mode N/A self exact_mode N/A N/A sep_root N/A N/A root split N/A os sep N/A sep_root N/A N/A N/A N/A N/A N/A os path join sep_root unsplitable_paths N/A N/A N/A N/A N/A sep_root pop N/A sep_root N/A N/A unsplitable True N/A N/A self unsplitable_mode N/A N/A unsplitable_name N/A sep_root N/A -1 N/A N/A N/A logger info N/A Looks like we found a unsplitable release in %r N/A N/A N/A os sep join sep_root N/A f files N/A N/A N/A N/A self insert_into_database root f unsplitable unsplitable_name unsplitable_name N/A N/A N/A unsplitable N/A N/A N/A self normal_mode N/A N/A f files N/A N/A N/A N/A self skip_file f N/A N/A N/A N/A N/A self insert_into_database root f normal N/A N/A self exact_mode N/A N/A f files N/A N/A N/A N/A self insert_into_database root f exact f N/A d dirs N/A N/A N/A N/A self insert_into_database root d exact d N/A N/A N/A self hash_name_mode N/A self hash_size_mode N/A self hash_slow_mode N/A N/A f files N/A N/A N/A N/A self hash_size_mode N/A self hash_slow_mode N/A N/A N/A N/A self insert_into_database root f hash_store_size N/A N/A self hash_name_mode N/A N/A N/A N/A self insert_into_database root f hash_store_name N/A N/A N/A logger info N/A Done scanning %s root_path N/A N/A N/A N/A self db sync N/A clear_hash_size_table N/A N/A self N/A N/A N/A 
        Clears the hash size table.
         N/A N/A self hash_size_table None N/A build_hash_size_table N/A N/A self N/A N/A N/A 
        Builds a table of all sizes to make lookups faster for varying sizes.
         N/A N/A N/A self hash_size_table None N/A N/A N/A N/A logger debug Hash size table already built, skipping N/A N/A N/A self hash_size_table N/A set N/A key N/A N/A N/A self db keys N/A N/A N/A N/A N/A key startswith s: N/A N/A N/A N/A _ size N/A N/A key split : N/A N/A N/A N/A self hash_size_table add N/A int size N/A N/A self hash_size_table N/A sorted N/A self hash_size_table N/A find_hash_varying_size N/A N/A self size N/A N/A N/A 
        Looks for a file with close to size in the database.
        The function assumes build_hash_size_table has already been called.
        
        Returns a list of paths ordered by how close they are to the size.
         N/A size_span N/A N/A size N/A self hash_mode_size_varying 100 N/A N/A min_size_span max_size_span N/A N/A size size_span N/A size size_span N/A found_sizes N/A N/A db_size N/A self hash_size_table N/A N/A N/A db_size min_size_span N/A N/A N/A N/A db_size max_size_span N/A N/A N/A N/A N/A found_sizes append db_size N/A found_sizes N/A sorted found_sizes key N/A N/A N/A x N/A N/A abs N/A x size N/A result N/A N/A found_size found_sizes N/A N/A key N/A str N/A s:%i found_size N/A result N/A N/A N/A self db get key N/A N/A result N/A find_hash_size N/A N/A self size N/A N/A N/A 
        Looks for a file with exact size in the database.
        
        Returns a list of paths.
         N/A N/A N/A N/A self db get N/A str N/A s:%s size N/A N/A find_hash_name N/A N/A self f N/A N/A N/A 
        Looks for a file with name f in the database.
        
        Returns a list of paths.
         N/A key N/A N/A self keyify N/A N/A self normalize_filename f N/A N/A N/A N/A self db get key N/A N/A find_unsplitable_file_path N/A N/A self rls f size N/A N/A N/A 
        Looks for a file in the database.
         N/A f N/A N/A N/A self normalize_filename x N/A x f N/A key N/A N/A self keyify size N/A N/A self normalize_filename rls f N/A N/A N/A N/A self db get key N/A find_exact_file_path N/A N/A self prefix rls N/A N/A N/A 
        Looks for a name in the database.
         N/A key N/A N/A self keyify prefix rls N/A N/A N/A N/A self db get key N/A find_file_path N/A N/A self f size N/A N/A N/A 
        Looks for a file in the database.
         N/A key N/A N/A self keyify size N/A N/A self normalize_filename f N/A N/A N/A N/A self db get key N/A keyify N/A N/A self size N/A names N/A N/A 
        Turns a name and size into a key that can be stored in the database.
         N/A key N/A %s|%s N/A size N/A N/A | join names N/A N/A N/A logger debug N/A Keyify: %s key N/A N/A N/A N/A N/A hashlib sha256 N/A N/A key encode utf-8 hexdigest N/A normalize_filename N/A N/A self filename N/A N/A N/A 
        Normalizes a filename to better detect simlar files.
         N/A N/A N/A N/A N/A filename replace _ lower N/A N/A