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.8.3.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file cs-storage-1.8.3.tar.gz
.
File metadata
- Download URL: cs-storage-1.8.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c778bd87bfb4c4059f98c67c779efc1ab501839e66b744549fa581fba375ce2 |
|
MD5 | f1c8ee054d16715a80dac88f1dfad9ec |
|
BLAKE2b-256 | 64ee5b41155b2d83576e0542a819e3d7256285fdfd23df5ab3bf5be782467f5c |
File details
Details for the file cs_storage-1.8.3-py3-none-any.whl
.
File metadata
- Download URL: cs_storage-1.8.3-py3-none-any.whl
- Upload date:
- Size: 9.4 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/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2bddc51966a9f2bbf2bdb012ccea3dfc06a8f3c71f49fd597c615d0355a8df0 |
|
MD5 | d159d3af1b2c14d734e8c1902827e68e |
|
BLAKE2b-256 | 35d30cc059bcce1e68620e85f52118f6abd9b1b9c81e049646a1c0acdfcd749c |