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.1.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for cloud_storage-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ca6f17a922d0b1e5ff4cb1581c217484a80a7ee0a7b82be60725a8a6e4b065 |
|
MD5 | a3c5a7b7cfdedb412e37ce9c27c31119 |
|
BLAKE2b-256 | d4089f770672c30e1a56a3d60639a5290e1e5636df5d373d68125909ddf99c38 |