Skip to main content

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

Metadata

Release files for cs-storage 1.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs-storage 1.11.1
File Size Uploaded
cs-storage-1.11.1.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cs-storage 1.11.1
File Interpreter ABI Platform
cs_storage-1.11.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.7 kB

Release files / cs-storage-1.11.1.tar.gz

Download URL cs-storage-1.11.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8af73a225d570961bf18a4a1895050e096ea7c939746d2fae338860fdb1b6850
BLAKE2b-256 checksum
How to use checksums
7f3484fd336f031374306a210bfa743ff345590cf6bc473a75a7d886c33e78aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release files / cs_storage-1.11.1-py3-none-any.whl

Download URL cs_storage-1.11.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcfa953e76ba7570e86bf85803f703850e45ea78312aea1cee0fe723e38e499a
BLAKE2b-256 checksum
How to use checksums
ff5a0421082066768c79a91f2a2c6205d34a3432fef48d4dc887d9636e22d524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.11.1 This release

2 release files

1.11.0

2 release files

1.10.1

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page