Skip to main content

A small package that is used by Compute Studio to read and write model results to google cloud storage.

Project description

Compute Studio Storage

A light-weight package that is used by Compute Studio to read and write model results to Google Cloud Storage.

Setup

pip install cs-storage
export BUCKET=YOUR_BUCKET

Authenticate

gcloud auth login
gcloud auth application-default login

Use

import cs_storage

# run_model returns data that is compliant with the C/S outputs api.
local_result, task_id = run_model(**kwargs)
remote_result = cs_storage.write(task_id, local_result)
round_trip = cs_storage.read(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

cs-storage-1.7.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

cs_storage-1.7.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file cs-storage-1.7.1.tar.gz.

File metadata

  • Download URL: cs-storage-1.7.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for cs-storage-1.7.1.tar.gz
Algorithm Hash digest
SHA256 aabac6df35ebaa66b604620c43503005e1994c580d6860a9149a1ef436c311d8
MD5 c04ce1f502e7165c111e43851a8c709e
BLAKE2b-256 8ca00c34aa809490c9509c06c5c8e504c3d208655462845962263ff3f03ca01b

See more details on using hashes here.

File details

Details for the file cs_storage-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: cs_storage-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for cs_storage-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac4ba233fee0803f7c39e0163804247c507f55d7c167eac2fa9a22d04b5435c
MD5 c20497b8d34e30e562ffd1f299d241b4
BLAKE2b-256 5371c2caebe08f6e98846f89a12c3005a753bb8386cc2fd0f83db77a6d68b607

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