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.0.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file cs-storage-1.8.0.tar.gz
.
File metadata
- Download URL: cs-storage-1.8.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb7da5e214e2c77432c199b3e8200ee18ae9de7867aed010c7e674d26cb5853 |
|
MD5 | 7568b2a01503f746c22999506a91263c |
|
BLAKE2b-256 | 53e09cf3ae61d24d5440b2224a516a68103aa7584ffbda864b73e158730d8811 |
File details
Details for the file cs_storage-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: cs_storage-1.8.0-py3-none-any.whl
- Upload date:
- Size: 8.8 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/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c9c36ad04134a19f4562af38584575d42850b7f245918ba5f2686a03a4c566 |
|
MD5 | 51db999bb81b4b67fa3df42c947b1fd6 |
|
BLAKE2b-256 | 403bf3a1c164766165d6d9420c115a99cebe0c233e88072d3c1bc2e0db0365e3 |