This package will allow an easier interaction with s3 buckets.
Project description
1.1.1
- Features
- Remove boto3 version
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.1.1.tar.gz
(3.0 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.1.1.tar.gz.
File metadata
- Download URL: s3simplemanager-1.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6932a313462cfd01cb05dc35e4574895f1a924f8b21e8618781b35d0ea4452
|
|
| MD5 |
f1be7f16be8d7ffa6721d00e3f0fc481
|
|
| BLAKE2b-256 |
1f9348022f89192bda1d5f3ae39a18410be92c265900eb62fd2ddbb9cc8fd4b4
|
File details
Details for the file s3simplemanager-1.1.1-py3-none-any.whl.
File metadata
- Download URL: s3simplemanager-1.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9859ffb7550d19a20da601018eebf324d84a1771b0259b0de338e35753b6bb2e
|
|
| MD5 |
c78c286e72fd63720c156ed96c516dc1
|
|
| BLAKE2b-256 |
4a59d8d55ddc1838f8addccd8cb3eeec111ae0ff309d11319bacc45e4fafa5c6
|