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.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file s3like-1.1.0.tar.gz
.
File metadata
- Download URL: s3like-1.1.0.tar.gz
- Upload date:
- Size: 3.6 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.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487e40e7de2e3b72ba4bc97bc172e618d8b7661e28e754073046bf11c76ec692 |
|
MD5 | 1ead5752f8e6e35975bcfd9baec1ee3b |
|
BLAKE2b-256 | 67cb98c8bdf72f1a3ec9bcfa34279ee9d90d58fd2af2494942f0456fe29d5ffd |
File details
Details for the file s3like-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: s3like-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 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.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de74dd69440264faa8cb8dd974849bd4a6353f7e036d19c92fbab6c36c16c993 |
|
MD5 | 9fdb3497a5adbd5dfdc6650a30348cd3 |
|
BLAKE2b-256 | c8980ea664fd52eba018071bca6821c5fe591fb50fb302f55dfc8d4dc07420a0 |