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.1.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for cs_storage-1.11.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcfa953e76ba7570e86bf85803f703850e45ea78312aea1cee0fe723e38e499a |
|
MD5 | a50f10213a8f60b144b9f8820f4a060d |
|
BLAKE2b-256 | ff5a0421082066768c79a91f2a2c6205d34a3432fef48d4dc887d9636e22d524 |