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
pip install topmind-s3
from topmind_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-3.0.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for topmind_s3-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b9345d84ae79153f01129ef29c0d6ff6a403eb561036923a4542d8a2d031a76 |
|
MD5 | cc81018561da5f64241357e7c804dadc |
|
BLAKE2b-256 | 15093d67be88c3f445bbd5c4b1b250adbf441a9a7b6ad3845e415ad6fbae3a08 |