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.9.0.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file cs-storage-1.9.0.tar.gz
.
File metadata
- Download URL: cs-storage-1.9.0.tar.gz
- Upload date:
- Size: 7.9 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 | 9ae9310748309713652e3705569861132c688c29508f805700809761674b86b9 |
|
MD5 | 40def8f677c7b878f1f7170b6b713bca |
|
BLAKE2b-256 | c60bcfa995567aca51447bf179814f160382148cd942150746c63a88e7317ab8 |
File details
Details for the file cs_storage-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: cs_storage-1.9.0-py3-none-any.whl
- Upload date:
- Size: 9.5 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 | a4c646d5022cc64d769fd76e2bd51a5f5444ba7c432f4a7919366d64870b3b77 |
|
MD5 | 8c882cdb0b9d5ffc2c3e93128808178d |
|
BLAKE2b-256 | e0a12f989bb6b70c0cfb4cf8b33d3933cea77186e7fd40f7afea92866a851545 |