TopMind S3 Helper
Project description
S3 CRUD client
Pre-install
export S3_ENDPOINT_URL=[s3 api compatible server]
export S3_BUCKET=[bucket name]
export S3_ACCESS_KEY_ID=[s3 key id]
export S3_SECRET_ACCESS_KEY=[s3 secret key]
Usage
pip3 install s3-talenttech-oss
from s3.client import Client
client = Client()
client.create_dir('dir')
client.create_file('dir/file.txt', 'qwerty')
content = client.read_file('dir/file.txt')
client.create_file('dir/file_another.txt', 'qwerty')
lst = client.bulk_read('dir')
print(lst)
>>> ['qwerty', 'qwerty']
client.delete_dir('dir')
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
topmind-s3-0.0.4.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for topmind_s3-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6326b63e6ca78c7750ff3efc3ab2b97525816fd36e231b87bdb6116ca39d44dc |
|
MD5 | d613a4a4ea16e95e3c2fe93155d58625 |
|
BLAKE2b-256 | 9734db314fd15c4ef746ad60fdcf283adf4839207f88f452589bf9ffd7a599a6 |