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

Uploaded Source

Built Distribution

cs_storage-1.8.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cs-storage-1.8.2.tar.gz
  • Upload date:
  • Size: 8.3 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.2.tar.gz
Algorithm Hash digest
SHA256 9fa6185a895dec0a66ed44c1de4bc903e2ddf2c7dbb66aa1b3ced172ea3e8110
MD5 d4f7cfe87b103cf8b1849f20c8087dae
BLAKE2b-256 8278c97c13584a7fb7bfa0a6fa91f488f7e445b982c93f345197d06c1f469d97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cs_storage-1.8.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c578620cf090212575ed6e2d02c35b001d4c4b61478af50ccce01fc4f9f6912
MD5 e62eaa1189fe1eea29190d020b99b7a7
BLAKE2b-256 76dc5e898f8425be6473e85324d0b0f602ed5d104b22ec60f9f2c4ce54796c1a

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