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 details)
Built Distribution
File details
Details for the file cloud-storage-1.4.0.tar.gz
.
File metadata
- Download URL: cloud-storage-1.4.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0c07d7c072bd561cd2b5477ef97ebae8936c18fe6aac17858dc892d07c9b4935
|
|
MD5 |
818da93f6a869288d503c9995a7ca593
|
|
BLAKE2b-256 |
6c0d7f9a10b37332519c5f777968d108a4afbca11d01cee260f89d6665b64736
|
File details
Details for the file cloud_storage-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: cloud_storage-1.4.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a924b41968e348b59d2a7efdfa3b7aff7a749dd824380f471f9694b88c6733d0
|
|
MD5 |
cedd29c1febc490d543420e157e4c071
|
|
BLAKE2b-256 |
69a0de2bd5ed15ef32b5eab5d45851b990c9ceadffeef52df7824b57f1048e0a
|