Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args 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 decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr orelse Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Num decorator_list decorator_list
N/A N/A os N/A sys N/A boto boto.s3.key Key boto.s3.connection S3Connection S3Utility N/A object N/A N/A 
    :description: An AWS S3 utility class.

    This is a class rather than a module because some state is required 
    to avoid having to reestablish an s3 connection each transaction.

    :type access_key: string
    :param access_key: aws access key

    :type secret_key: string
    :param secret_key: aws secret key

     __init__ N/A N/A self access_key secret_key s3_bucket N/A N/A N/A N/A self access_key access_key N/A N/A self secret_key secret_key N/A N/A self s3_bucket s3_bucket N/A N/A self _conn None N/A conn N/A N/A self N/A N/A N/A N/A N/A self _conn None N/A N/A N/A self _conn N/A N/A N/A S3Connection N/A self access_key N/A self secret_key N/A property download_file_list N/A N/A self prefix N/A N/A N/A 
        :description: loads the name of the files in a bucket. 
            Optionally returns only those filenames that start with prefix.
         N/A bucket N/A N/A N/A self conn get_bucket N/A self s3_bucket N/A file_list N/A N/A key N/A N/A bucket list N/A N/A key_name N/A N/A N/A key name encode utf-8 N/A N/A N/A key_name startswith prefix N/A N/A N/A N/A file_list append key_name N/A file_list N/A download_file N/A N/A self file_to_load local_save_dir N/A N/A N/A 
        :description: load a file from a given s3 bucket with a 
            given name and save to a local dir

        :type s3_bucket: string
        :param s3_bucket: s3 bucket from which to load the file

        :type file_to_load: string
        :param file_to_load: the file to load

        :type local_save_dir: string
        :param local_save_dir: the local dir to which to save the downloaded file

        :return: the location where the file was saved
         N/A bucket N/A N/A N/A self conn get_bucket N/A self s3_bucket N/A key N/A Key bucket file_to_load N/A key_name N/A N/A N/A key name encode utf-8 N/A save_location N/A N/A N/A os path join local_save_dir key_name N/A N/A N/A N/A N/A key get_contents_to_filename save_location N/A N/A N/A N/A N/A boto exception S3ResponseError N/A e N/A N/A N/A N/A N/A boto exception S3ResponseError N/A N/A key name: {} failed format key_name N/A save_location N/A upload_file N/A N/A self filename_to_save_as file_path N/A N/A N/A 
        :description: uploads a single file to an s3 bucket

        :type s3_bucket: string
        :param s3_bucket: name of the s3 bucket to which the file should be uploaded
         percent_cb N/A N/A complete total N/A N/A N/A N/A N/A N/A sys stdout write . N/A N/A N/A N/A sys stdout flush N/A N/A bucket N/A N/A N/A self conn get_bucket N/A self s3_bucket N/A key N/A Key bucket N/A N/A key key filename_to_save_as N/A N/A N/A key set_contents_from_filename file_path cb percent_cb num_cb 50 N/A N/A