No project description provided
Project description
Intall
pip3 install cloud-storage-client
Example usage:
from cloud_storage_client import storage
import os
storageClient = storage.StorageClient(
os.environ['STORAGE_PROVIDER'], # GOOGLE_CLOUD_STORAGE = 'GCS', AMAZON_S3 = 'S3', AZURE_BLOB_STORAGE = 'ABS'
os.environ['STORAGE_BUCKET_NAME'],
os.getenv('STORAGE_ACCESS_KEY'),
os.getenv('STORAGE_SECRET_KEY'))
# Delete single file
storageClient.delete_file('path/file.py')
# Delete a virtual folder
storageClient.delete_folder('path')
# Download a folder
storageClient.download_folder('folder_destination_name', '/Users/user/Downloads')
# Upload a local file
storageClient.upload_file('/Users/user/Documents/my-file.yaml', 'my-file.yaml')
# Download single file
storageClient.download_file('virtual_path', 'file.py', '/Users/user/Documents')
# Upload a folder
storageClient.upload_folder('folder_destination_name', '/Users/user/Documents', do_tar=False, do_compress=False)
# Upload local files
storageClient.upload_files('folder_destination_name', ['file01.py', 'file02.py'], '/Users/user/Documents', do_tar=False, do_compress=False)
# List remote files over a virtual path / directory
storageClient.list_files_folder('folder_destination_name')
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloud_storage_client-1.0.0.tar.gz.
File metadata
- Download URL: cloud_storage_client-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb9b650496a44ef80e1f7bb04d2e0cfab7c6badcfe9362fd60a0966c228219c0
|
|
| MD5 |
cdb54fa3c5fbf475a9c82d1be89cfc04
|
|
| BLAKE2b-256 |
544614af332cb1e372073e26ff857320e34b1561be70a11e53732b42fe5c6ee1
|
File details
Details for the file cloud_storage_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cloud_storage_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c96f9a8254dd68c131ebaf3d3413a62f464c43bc24f71a6e800a8a3510e306
|
|
| MD5 |
e407eb22290417917213ff96283d6a5e
|
|
| BLAKE2b-256 |
65ae6cca3458dfcab49c1a880cb4db1b78a1188e2fc672c920e76620ba6dc19a
|