Client¶
AsyncS3Client
¶
Bases: S3Client
Async Client for interacting with s3 based on boto3 client.
Source code in saritasa_s3_tools/async_client/client.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
async_copy_object(key, source_key, bucket='', source_bucket='')
async
¶
Copy file object from copy source to key path in async env.
Source code in saritasa_s3_tools/async_client/client.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
async_delete_object(key, bucket='')
async
¶
Delete file object from s3 bucket is async env.
Source code in saritasa_s3_tools/async_client/client.py
119 120 121 122 123 124 125 126 127 128 129 | |
async_download_file(key, file_obj, bucket='')
async
¶
Download file from s3 in async env.
Source code in saritasa_s3_tools/async_client/client.py
65 66 67 68 69 70 71 72 73 74 75 76 77 | |
async_generate_params(filename, config, content_type, bucket='', upload_folder='', extra_metadata=None)
async
¶
Generate params for s3 upload in async env.
Source code in saritasa_s3_tools/async_client/client.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
async_get_file_metadata(key, bucket='')
async
¶
Get file's metadata in async env.
Source code in saritasa_s3_tools/async_client/client.py
79 80 81 82 83 84 85 86 87 88 89 | |
async_is_file_in_bucket(key, bucket='')
async
¶
Check if file is in bucket in async env.
Source code in saritasa_s3_tools/async_client/client.py
91 92 93 94 95 96 97 98 99 100 101 | |
async_upload_file(filename, config, file_obj, bucket='')
async
¶
Upload file to s3 in async env.
Source code in saritasa_s3_tools/async_client/client.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |
run_sync_as_async(func, *args, **kwargs)
async
¶
Make sync function run in async env.
Source code in saritasa_s3_tools/async_client/client.py
18 19 20 21 22 23 24 25 26 27 | |