Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias Import alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return TryExcept body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return handlers ExceptHandler type AttributeLoad NameLoad attr body Pass TryExcept body With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Str Str Str Str Str Str Str If Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad GeneratorExp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Return handlers ExceptHandler type NameLoad body Pass Raise Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body With NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Return TupleLoad NameLoad NameLoad handlers ExceptHandler body Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad If CompareEq Call NameLoad NameLoad Num body Return TupleLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body With AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body 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 NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body 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 NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad If CompareEq Call NameLoad NameLoad Num body Return TupleLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Break With NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Print TupleLoad Str NameLoad decorator_list Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Print TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A collections N/A json N/A os N/A sqlite3 N/A stat N/A threading abc ABCMeta abstractmethod N/A six exception CorruptAccountInfo MissingAccountData AbstractAccountInfo N/A object N/A N/A 
    Holder for all account-related information that needs to be kept
    between API calls, and between invocations of the command-line
    tool.  This includes: account id, application key, auth tokens,
    API URL, download URL, and uploads URLs.

    This class must be THREAD SAFE because it may be used by multiple
    threads running in the same Python process.  It also needs to be
    safe against multiple processes running at the same time.
     N/A REALM_URLS N/A production dev staging https://api.backblaze.com http://api.test.blaze:8180 https://api.backblaze.net clear N/A N/A self N/A N/A N/A 
        Removes all stored information
         N/A abstractmethod refresh_entire_bucket_name_cache N/A N/A self name_id_iterable N/A N/A N/A 
        Removes all previous name-to-id mappings and stores new ones.
         N/A abstractmethod remove_bucket_name N/A N/A self bucket_name N/A N/A N/A 
        Removes one entry from the bucket name cache.
         N/A abstractmethod save_bucket N/A N/A self bucket N/A N/A N/A 
        Remembers the ID for a bucket name.
         N/A abstractmethod get_bucket_id_or_none_from_bucket_name N/A N/A self bucket_name N/A N/A N/A 
        Looks up the bucket ID for a given bucket name.
         N/A abstractmethod clear_bucket_upload_data N/A N/A self bucket_id N/A N/A N/A 
        Removes all upload URLs for the given bucket.
         N/A abstractmethod get_account_id N/A N/A self N/A N/A N/A  returns account_id or raises MissingAccountData exception  N/A abstractmethod get_account_auth_token N/A N/A self N/A N/A N/A  returns account_auth_token or raises MissingAccountData exception  N/A abstractmethod get_api_url N/A N/A self N/A N/A N/A  returns api_url or raises MissingAccountData exception  N/A abstractmethod get_application_key N/A N/A self N/A N/A N/A  returns application_key or raises MissingAccountData exception  N/A abstractmethod get_download_url N/A N/A self N/A N/A N/A  returns download_url or raises MissingAccountData exception  N/A abstractmethod get_realm N/A N/A self N/A N/A N/A  returns realm or raises MissingAccountData exception  N/A abstractmethod get_minimum_part_size N/A N/A self N/A N/A N/A 
        :return: returns the minimum number of bytes in a part of a large file
         N/A abstractmethod set_auth_data N/A N/A self account_id auth_token api_url download_url minimum_part_size application_key realm N/A N/A N/A N/A abstractmethod take_bucket_upload_url N/A N/A self bucket_id N/A N/A N/A 
        Returns a pair (upload_url, upload_auth_token) that has been removed
        from the pool for this bucket, or (None, None) if there are no more
        left.
         N/A abstractmethod put_bucket_upload_url N/A N/A self bucket_id upload_url upload_auth_token N/A N/A N/A 
        Add an (upload_url, upload_auth_token) pair to the pool available for
        the bucket.
         N/A abstractmethod put_large_file_upload_url N/A N/A self file_id upload_url upload_auth_token N/A N/A N/A N/A abstractmethod take_large_file_upload_url N/A N/A self file_id N/A N/A N/A N/A abstractmethod clear_large_file_upload_urls N/A N/A self file_id N/A N/A N/A N/A abstractmethod N/A N/A N/A six add_metaclass ABCMeta SqliteAccountInfo N/A AbstractAccountInfo N/A N/A 
    Stores account information in an sqlite database, which is
    used to manage concurrent access to the data.
     __init__ N/A N/A self file_name N/A None N/A N/A N/A self thread_local N/A N/A threading local N/A user_account_info_path N/A file_name N/A N/A N/A os environ get B2_ACCOUNT_INFO ~/.b2_account_info N/A N/A self filename N/A file_name N/A N/A N/A os path expanduser user_account_info_path N/A N/A N/A self _validate_database N/A N/A N/A self _get_connection conn N/A N/A N/A N/A self _create_tables conn N/A N/A self _large_file_uploads N/A N/A collections defaultdict list N/A N/A self _lock N/A N/A threading Lock N/A _validate_database N/A N/A self N/A N/A N/A 
        Makes sure that the database is openable.  Removes the file if it's not.
         N/A N/A N/A N/A N/A os path exists N/A self filename N/A N/A N/A N/A self _create_database N/A N/A N/A N/A N/A N/A self _connect conn N/A N/A N/A N/A self _create_tables conn N/A N/A N/A N/A N/A sqlite3 DatabaseError N/A N/A N/A N/A N/A N/A open N/A self filename rb f N/A N/A data N/A N/A json loads N/A N/A N/A N/A f read decode utf-8 N/A keys N/A account_id application_key account_auth_token api_url download_url minimum_part_size realm N/A N/A all N/A N/A k data N/A k keys N/A N/A N/A N/A os unlink N/A self filename N/A N/A N/A self _create_database N/A N/A N/A self _connect conn N/A N/A N/A N/A self _create_tables conn N/A insert_statement 
                            INSERT INTO account
                            (account_id, application_key, account_auth_token, api_url, download_url, minimum_part_size, realm)
                            values (?, ?, ?, ?, ?, ?, ?);
                         N/A N/A N/A conn execute insert_statement N/A tuple N/A N/A data N/A k N/A k keys N/A N/A N/A N/A ValueError N/A N/A N/A N/A CorruptAccountInfo N/A self filename N/A _get_connection N/A N/A self N/A N/A N/A 
        Connections to sqlite cannot be shared across threads.
         N/A N/A N/A N/A N/A self thread_local connection N/A N/A N/A N/A N/A N/A self thread_local connection N/A N/A self _connect N/A N/A N/A self thread_local connection N/A _connect N/A N/A self N/A N/A N/A N/A N/A sqlite3 connect N/A self filename isolation_level EXCLUSIVE N/A _create_database N/A N/A self N/A N/A N/A 
        Makes sure that the database is created and sets the file permissions.
        This should be done before storing any sensitive data in it.
         N/A conn N/A N/A self _connect N/A N/A N/A conn N/A N/A N/A N/A self _create_tables conn N/A N/A N/A N/A conn close N/A N/A N/A os chmod N/A self filename N/A N/A stat S_IRUSR N/A stat S_IWUSR N/A _create_tables N/A N/A self conn N/A N/A N/A N/A N/A conn execute 
           CREATE TABLE IF NOT EXISTS
           account (
               account_id TEXT NOT NULL,
               application_key TEXT NOT NULL,
               account_auth_token TEXT NOT NULL,
               api_url TEXT NOT NULL,
               download_url TEXT NOT NULL,
               minimum_part_size INT NOT NULL,
               realm TEXT NOT NULL
           );
         N/A N/A N/A conn execute 
           CREATE TABLE IF NOT EXISTS
           bucket (
               bucket_name TEXT NOT NULL,
               bucket_id TEXT NOT NULL
           );
         N/A N/A N/A conn execute 
           CREATE TABLE IF NOT EXISTS
           bucket_upload_url (
               bucket_id TEXT NOT NULL,
               upload_url TEXT NOT NULL,
               upload_auth_token TEXT NOT NULL
           );
         N/A clear N/A N/A self N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute DELETE FROM account; N/A N/A N/A conn execute DELETE FROM bucket; N/A N/A N/A conn execute DELETE FROM bucket_upload_url; N/A set_auth_data N/A N/A self account_id account_auth_token api_url download_url minimum_part_size application_key realm N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute DELETE FROM account; N/A N/A N/A conn execute DELETE FROM bucket; N/A N/A N/A conn execute DELETE FROM bucket_upload_url; N/A insert_statement 
                INSERT INTO account
                (account_id, application_key, account_auth_token, api_url, download_url, minimum_part_size, realm)
                values (?, ?, ?, ?, ?, ?, ?);
             N/A N/A N/A conn execute insert_statement N/A account_id application_key account_auth_token api_url download_url minimum_part_size realm N/A get_application_key N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise application_key N/A get_account_id N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise account_id N/A get_api_url N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise api_url N/A get_account_auth_token N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise account_auth_token N/A get_download_url N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise download_url N/A get_realm N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise realm N/A get_minimum_part_size N/A N/A self N/A N/A N/A N/A N/A self _get_account_info_or_raise minimum_part_size N/A _get_account_info_or_raise N/A N/A self column_name N/A N/A N/A N/A N/A N/A N/A self _get_connection conn N/A N/A cursor N/A N/A conn execute N/A SELECT %s FROM account; N/A column_name N/A value N/A N/A N/A cursor fetchone N/A 0 N/A value N/A N/A N/A Exception N/A e N/A N/A N/A MissingAccountData N/A str e N/A refresh_entire_bucket_name_cache N/A N/A self name_id_iterable N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute DELETE FROM bucket; N/A N/A bucket_name bucket_id name_id_iterable N/A N/A N/A N/A conn execute INSERT INTO bucket (bucket_name, bucket_id) VALUES (?, ?); N/A bucket_name bucket_id N/A save_bucket N/A N/A self bucket N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute DELETE FROM bucket WHERE bucket_id = ?; N/A N/A bucket id_ N/A N/A N/A conn execute INSERT INTO bucket (bucket_id, bucket_name) VALUES (?, ?); N/A N/A bucket id_ N/A bucket name N/A remove_bucket_name N/A N/A self bucket_name N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute DELETE FROM bucket WHERE bucket_name = ?; N/A bucket_name N/A get_bucket_id_or_none_from_bucket_name N/A N/A self bucket_name N/A N/A N/A N/A N/A N/A N/A self _get_connection conn N/A N/A cursor N/A N/A conn execute SELECT bucket_id FROM bucket WHERE bucket_name = ?; N/A bucket_name N/A N/A N/A N/A cursor fetchone N/A 0 N/A N/A N/A N/A None N/A put_bucket_upload_url N/A N/A self bucket_id upload_url upload_auth_token N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute INSERT INTO bucket_upload_url (bucket_id, upload_url, upload_auth_token) values (?, ?, ?); N/A bucket_id upload_url upload_auth_token N/A clear_bucket_upload_data N/A N/A self bucket_id N/A N/A N/A N/A N/A self _get_connection conn N/A N/A N/A N/A conn execute DELETE FROM bucket_upload_url WHERE bucket_id = ?; N/A bucket_id N/A take_bucket_upload_url N/A N/A self bucket_id N/A N/A N/A N/A N/A N/A N/A self _get_connection conn N/A N/A cursor N/A N/A conn execute SELECT upload_url, upload_auth_token FROM bucket_upload_url WHERE bucket_id = ?; N/A bucket_id N/A N/A upload_url upload_auth_token N/A N/A cursor fetchone N/A N/A N/A conn execute DELETE FROM bucket_upload_url WHERE upload_auth_token = ?; N/A upload_auth_token N/A N/A upload_url upload_auth_token N/A N/A N/A N/A N/A None None N/A put_large_file_upload_url N/A N/A self file_id upload_url upload_auth_token N/A N/A N/A N/A self _lock N/A N/A N/A N/A N/A N/A self _large_file_uploads N/A file_id append N/A upload_url upload_auth_token N/A take_large_file_upload_url N/A N/A self file_id N/A N/A N/A N/A self _lock N/A N/A url_list N/A N/A N/A self _large_file_uploads get file_id N/A N/A N/A N/A len url_list 0 N/A N/A N/A None None N/A N/A N/A N/A url_list pop N/A clear_large_file_upload_urls N/A N/A self file_id N/A N/A N/A N/A self _lock N/A N/A N/A file_id N/A self _large_file_uploads N/A N/A N/A N/A self _large_file_uploads N/A file_id N/A N/A StubAccountInfo N/A AbstractAccountInfo N/A N/A REALM_URLS N/A production http://production.example.com __init__ N/A N/A self N/A N/A N/A N/A N/A self clear N/A clear N/A N/A self N/A N/A N/A N/A self account_id None N/A N/A self auth_token None N/A N/A self api_url None N/A N/A self download_url None N/A N/A self minimum_part_size None N/A N/A self application_key None N/A N/A self realm None N/A N/A self buckets N/A N/A N/A self _large_file_uploads N/A N/A collections defaultdict list N/A clear_bucket_upload_data N/A N/A self bucket_id N/A N/A N/A N/A bucket_id N/A self buckets N/A N/A N/A N/A self buckets N/A bucket_id N/A set_auth_data N/A N/A self account_id auth_token api_url download_url minimum_part_size application_key realm N/A N/A N/A N/A self account_id account_id N/A N/A self auth_token auth_token N/A N/A self api_url api_url N/A N/A self download_url download_url N/A N/A self minimum_part_size minimum_part_size N/A N/A self application_key application_key N/A N/A self realm realm N/A refresh_entire_bucket_name_cache N/A N/A self name_id_iterable N/A N/A N/A N/A self buckets N/A N/A get_bucket_id_or_none_from_bucket_name N/A N/A self bucket_name N/A N/A N/A None N/A save_bucket N/A N/A self bucket N/A N/A N/A N/A remove_bucket_name N/A N/A self bucket_name N/A N/A N/A N/A take_bucket_upload_url N/A N/A self bucket_id N/A N/A N/A N/A None None N/A put_bucket_upload_url N/A N/A self bucket_id upload_url upload_auth_token N/A N/A N/A N/A get_account_id N/A N/A self N/A N/A N/A N/A self account_id N/A get_account_auth_token N/A N/A self N/A N/A N/A N/A self auth_token N/A get_api_url N/A N/A self N/A N/A N/A N/A self api_url N/A get_application_key N/A N/A self N/A N/A N/A N/A self application_key N/A get_download_url N/A N/A self N/A N/A N/A N/A self download_url N/A get_minimum_part_size N/A N/A self N/A N/A N/A N/A self minimum_part_size N/A get_realm N/A N/A self N/A N/A N/A N/A self realm N/A get_bucket_upload_data N/A N/A self bucket_id N/A N/A N/A N/A N/A N/A self buckets get bucket_id N/A None None N/A put_large_file_upload_url N/A N/A self file_id upload_url upload_auth_token N/A N/A N/A N/A N/A N/A N/A self _large_file_uploads N/A file_id append N/A upload_url upload_auth_token N/A take_large_file_upload_url N/A N/A self file_id N/A N/A N/A upload_urls N/A N/A N/A self _large_file_uploads get file_id N/A N/A N/A N/A len upload_urls 0 N/A N/A N/A None None N/A N/A N/A N/A upload_urls pop N/A clear_large_file_upload_urls N/A N/A self file_id N/A N/A N/A N/A file_id N/A self _large_file_uploads N/A N/A N/A N/A self _large_file_uploads N/A file_id N/A N/A test_upload_url_concurrency N/A N/A N/A N/A N/A file_name /tmp/test_upload_conncurrency.db N/A N/A N/A N/A N/A os unlink file_name N/A N/A N/A OSError N/A N/A N/A account_info N/A SqliteAccountInfo file_name N/A available_urls N/A set N/A i N/A N/A N/A six moves range 3000 N/A N/A url N/A url_%d i N/A N/A N/A account_info put_bucket_upload_url bucket-id url N/A auth-token-%d i N/A N/A N/A available_urls add url N/A lock N/A N/A threading Lock run_thread N/A N/A N/A N/A N/A True N/A N/A N/A url _ N/A N/A account_info take_bucket_upload_url bucket-id N/A N/A url None N/A N/A N/A lock N/A N/A N/A url available_urls N/A N/A N/A N/A available_urls remove url N/A N/A N/A DOUBLE: url N/A N/A threads N/A N/A i N/A N/A N/A six moves range 5 N/A N/A thread N/A N/A threading Thread target run_thread N/A N/A N/A thread start N/A N/A N/A threads append thread N/A t threads N/A N/A N/A N/A t join N/A N/A N/A len available_urls 0 N/A N/A N/A LEAK: available_urls N/A N/A N/A os unlink file_name N/A