Cloud Storage
Project description
Cloud Storage
Installation
pip install cloud-storage
How to use
>>> from cloud_storage import GoogleCloudStorage
>>> storage = GoogleCloudStorage()
>>> from cloud_storage import create_storage_client
>>> storage = create_storage_client()
Playground Download
gcs_storage_playground.py
s3_storage_boto3_playground.py
python playground/<play_ground_module> upload --bucket-name <your_bucket> \
--object-key "test_sample.html" \
--upload-str "<html>hello</html>" \
--content-encoding="gzip" \
--content-type="text/html"
python playground/<play_ground_module> download-gzipped --bucket-name <your_bucket> \
--object-key "test_sample.html"
python playground/<play_ground_module> download-gzipped --bucket-name <your_bucket> \
--object-key "test_sample.html" \
--do-gunzip
python playground/<play_ground_module> download-gzipped --bucket-name <your_bucket> \
--object-key "test_sample.html" \
--download-path='test_sample.html'
python playground/<play_ground_module> download-gzipped --bucket-name <your_bucket> \
--object-key "test_sample.html" \
--do-gunzip \
--download-path test_sample.html
Playground Rename
gcs_storage_playground.py
s3_storage_boto3_playground.py
python playground/<play_ground_module> rename --bucket-name <your_bucket> \
--object-key "test_sample.html" --new-object-key "test_sample1.html"
Playground Exists
gcs_storage_playground.py
s3_storage_boto3_playground.py
python playground/<play_ground_module> exists --bucket-name <your_bucket> \
--object-key "test_sample1.html"
Playground Delete
gcs_storage_playground.py
s3_storage_boto3_playground.py
python playground/<play_ground_module> delete --bucket-name <your_bucket> \
--object-key "test_sample1.html"
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
cloud-storage-1.4.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for cloud_storage-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a924b41968e348b59d2a7efdfa3b7aff7a749dd824380f471f9694b88c6733d0 |
|
MD5 | cedd29c1febc490d543420e157e4c071 |
|
BLAKE2b-256 | 69a0de2bd5ed15ef32b5eab5d45851b990c9ceadffeef52df7824b57f1048e0a |