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

Uploaded Source

Built Distribution

s3like-1.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: s3like-1.2.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/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for s3like-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4fc7e2afbcb7157c641194cb8f6343d2f967c1e43cc23f2c9a5ba65bd68d2a22
MD5 90d8c9b63a5942f6aff25ceaad83dc0c
BLAKE2b-256 009747c2cfe11325787901cf5b41bbdc67dcff3d1f99b5d9fb38077776fdbdc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: s3like-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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

Hashes for s3like-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9f5c07fc0a88f9e891a53be0f823533a0be5f9a0e196cc8dcab1230d224d425
MD5 58035778eceb29e2c1a27a3981c02a8c
BLAKE2b-256 cffbfcfa89da2a9cad14741c0641c9bef76827ec0b72917dc40338f7cef8c6d9

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