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.11.0.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for cs_storage-1.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5149ed673af8c2aa7539ac5a3bfa752901364646705faa8cd4026b92da517a3 |
|
MD5 | 6e72f57b4547cdbef1e49dfdafe9e351 |
|
BLAKE2b-256 | 706805ddee8e0a82f64fd498b03e5e12defc399dddb98ac565f202f98ec2b846 |