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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for topmind_s3-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c2aa1361950d77fac835a0888cbb85e8f6028872a7380884210c0d39942436f |
|
MD5 | e6866d897e30ff3faea963b8fa570e3a |
|
BLAKE2b-256 | 4a2894d7ef49d9f075de138fb803d8488118c232990fa2af05f2dec3fc88cf05 |