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 details)
Built Distribution
File details
Details for the file cs-storage-1.11.1.tar.gz
.
File metadata
- Download URL: cs-storage-1.11.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af73a225d570961bf18a4a1895050e096ea7c939746d2fae338860fdb1b6850 |
|
MD5 | a786955e50cbfecede774d0f59757d86 |
|
BLAKE2b-256 | 7f3484fd336f031374306a210bfa743ff345590cf6bc473a75a7d886c33e78aa |
File details
Details for the file cs_storage-1.11.1-py3-none-any.whl
.
File metadata
- Download URL: cs_storage-1.11.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcfa953e76ba7570e86bf85803f703850e45ea78312aea1cee0fe723e38e499a |
|
MD5 | a50f10213a8f60b144b9f8820f4a060d |
|
BLAKE2b-256 | ff5a0421082066768c79a91f2a2c6205d34a3432fef48d4dc887d9636e22d524 |