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.10.1.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file cs-storage-1.10.1.tar.gz
.
File metadata
- Download URL: cs-storage-1.10.1.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.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 464e5e4fac87e3d7b34c17164e96a30e86819f194e29809833eede88fb54e2f6 |
|
MD5 | 9b0dc18223ced60e046949fa22de8fd6 |
|
BLAKE2b-256 | 949df35ab6c9a9704be178320091d6dda79c8ee20ce50ecb352b1bf348eaba82 |
File details
Details for the file cs_storage-1.10.1-py3-none-any.whl
.
File metadata
- Download URL: cs_storage-1.10.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 925cec9ec40cdff3e5c6c499006a62bf2cb09cba67191358c9d1260eda8e4440 |
|
MD5 | f69ad273e933f3ba6cb9ab0f411fab7b |
|
BLAKE2b-256 | bb073b9848a99921df5c6a52369b2aab3df68ea7d6b89dd9588199d192164870 |