This package will allow an easier interaction with s3 buckets.
Project description
1.2
- Features
- Update functions documentations
Example of use:
Upload files
# imports
import s3simplemanager
s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
s3.upload_files("example_path_local_file", "example_path_bucket_file")
for object in s3.list_files("example_path_bucket_file"):
print(object)
List files when we have a know location
# imports
import s3simplemanager
s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
files = s3.list_files("main_folder/sub_folder")
for file in files:
print(file)
List files when we don't know the location
# imports
import s3simplemanager
s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
files = s3.list_files()
for file in files:
print(file)
Delete files
# imports
import s3simplemanager
s3 = S3SimpleManager(ssl_verification=False, bucket="s3_bucket_online", url="http://example.url.com/bucket", key_id="12345678", key_value="87654321")
s3.delete_files(["main_folder_one/sub_folder_one/file_one.txt", "main_folder_two/sub_folder_two/file_two.txt"])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
s3simplemanager-1.2.tar.gz
(14.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file s3simplemanager-1.2.tar.gz.
File metadata
- Download URL: s3simplemanager-1.2.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daa470973b6e7d50066e9f20addeaf2ad3cc829034517d6e3c91e4121cba3ac1
|
|
| MD5 |
78af2753024522098d21144e25947f67
|
|
| BLAKE2b-256 |
64da498aa1c4ba5c5b7ad29507f13ff42336c5860ff9e4b3f2f148df460e9e27
|
File details
Details for the file s3simplemanager-1.2-py3-none-any.whl.
File metadata
- Download URL: s3simplemanager-1.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d9d5a31833e7e555b1fbd142267d17b3a08a85edb47639734e083ed1083e21a
|
|
| MD5 |
143d51ff634fecdf8e50a98f55467673
|
|
| BLAKE2b-256 |
78647787b27bb4e44bc2c327edbccc20267af024e93362b578004dcad1e36deb
|