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
Release history Release notifications | RSS feed
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.6.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file cs-storage-1.6.0.tar.gz
.
File metadata
- Download URL: cs-storage-1.6.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c8e7f73c1efe8503cc0b33ff74938407b872e41c59c320abb663d357f1ec2c |
|
MD5 | 6f180218b6e69304f874c6ed3d2d1c33 |
|
BLAKE2b-256 | b7dec3916a4f518521a18dae90162d36b348bebb502e2799471094952f6359c9 |
File details
Details for the file cs_storage-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: cs_storage-1.6.0-py3-none-any.whl
- Upload date:
- Size: 4.3 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 060ecaacca1d3529471e68410eea9eedf19f9010074a107f56aaee49568ee118 |
|
MD5 | f5d6864cd4fc7c7684ad810fcd6d20a4 |
|
BLAKE2b-256 | 7db44108539e2e36d5bbcc452c133fd260349eee0ec0d6bc33b7cb15409b768c |