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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cs-storage-1.8.1.tar.gz
  • Upload date:
  • Size: 7.2 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.8.1.tar.gz
Algorithm Hash digest
SHA256 5d0caa2b45e40929db0c83371ba695c80fcaaca4f852b7382a95af15dd255811
MD5 d39e964f8c0488d391f6fd9e17fc7cc1
BLAKE2b-256 5539ff90d5dc14b5da6839f6f20566f4377e6bffc6979272e580a597ac9669e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cs_storage-1.8.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.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac082f5ba7d5104fe99f694ebc247d707fc8b7bc525cb08285ee18e129a5208d
MD5 473055320aa6bc7268bc07c1981d3316
BLAKE2b-256 e093471e0d11c58c756ebbefea28855e40ca191bc2b75ead66cc36e4ebecf1d9

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