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
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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed4b652ec936eb85c377041b89287a630d97bfd00a8ffb21f8ea231874f4d44 |
|
MD5 | 03d25d45d4b2c70eab0061c32a13339e |
|
BLAKE2b-256 | 6d51d5fc0a6f9977ffc2916c4fdfa8f9b4501f80f552a68d46dd0346cee397a6 |