TopMind S3 Helper
Project description
S3 CRUD client
Pre-install
export S3_ENDPOINT_URL=[s3 amocrm.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')
client.upload_file(src, dst, print_progress=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for s3_talenttech_oss-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8e7b01c72f86c07b13063359ed505649bafbf73233678a5b7bb44a4b6c939a |
|
MD5 | cce3813a00a71a4e6d1c0c8cfdc1cf0d |
|
BLAKE2b-256 | b08f44fbcbb625ed1037c211684fcabaa2419ab8c17ff900f4dd094d073d6199 |