Skip to main content

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


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.5.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

s3like-1.5.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file s3like-1.5.0.tar.gz.

File metadata

  • Download URL: s3like-1.5.0.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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for s3like-1.5.0.tar.gz
Algorithm Hash digest
SHA256 cd96cba75c8ebabdfb338f6c1aa4a8bc566a7a0436b289235222926ee8509979
MD5 2053bbcec052b27e417ec51eb5152bcd
BLAKE2b-256 c56bb7b19e3864b43e6bed5b23b1ccb644fe40de994957200a68b3b406211e39

See more details on using hashes here.

File details

Details for the file s3like-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: s3like-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for s3like-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9792a3629ad8a2305d8564fdcddd61d68a8c07883423fa08c78fb900084d902c
MD5 3cfcef50cc978e6e6e6c29cfec161618
BLAKE2b-256 d94875319bc2520d25692f78848f3aab743e5c7f4d528d7eb25fe9a40ffe63b9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page