A small package that is used by COMP to read and write model results to S3 like object storage systems.
Project description
s3like
A small package that is used by COMP to read and write model results to S3 like object storage systems. This means that this package is compatible with DigitalOcean Spaces and AWS S3, since DO Spaces uses the same API as AWS S3.
Setup:
pip install s3like
export OBJ_STORAGE_ACCESS=...
export OBJ_STORAGE_SECRET=...
export OBJ_STORAGE_ENDPOINT=...
export OBJ_STORAGE_EDGE=...
export OBJ_STORAGE_BUCKET=...
Use:
import s3like
# run_model returns data that is compliant with the COMP outputs api.
local_result, task_id = run_model(**kwargs)
remote_result = s3like.write_to_s3like(task_id, local_result)
round_trip = s3like.read_from_s3like(remote_result)
assert local_result == round_trip
Test:
py.test -v
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
s3like-1.3.1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file s3like-1.3.1.tar.gz
.
File metadata
- Download URL: s3like-1.3.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c40a8b60adcc5191b662a438da751320168229d6eeb09c352e83bb318a014f1 |
|
MD5 | ecc2b67e9a20e956def5934bd5b4b752 |
|
BLAKE2b-256 | 2583772f7767d710d1494ec8fdab354779155d38778b0825ac5253d929f6d313 |
File details
Details for the file s3like-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: s3like-1.3.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38640edaac9a8cc70c57e0b1c2a5c81bd4a1fbe188e58a99a318d5e41972b3c |
|
MD5 | 5721783aee5c91cb30a6565b3185b6f9 |
|
BLAKE2b-256 | d833dd0daf30626007eeeaeb997f92c3942fe4a0c7a0cee9ac22881218ef314f |