No project description provided
Project description
Install
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for cloud_storage_client-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5916ab9466d67ab5ccddc1ab3fab45fb1c2bd0ed432568c1b15dc679bcbd9768 |
|
MD5 | 5b6ae84e3e114e7ae89e149226aa2c4c |
|
BLAKE2b-256 | 10e4e220b0c745b172b62a52f8febff03dd31765315e5abfc13265cd57268081 |
Close
Hashes for cloud_storage_client-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdc79d3702de86f8f6ff31635fb1899b3cf504c76097885f62f3ea24e3ccea6 |
|
MD5 | 8f8cc423fbcc1ddac86be2190727fcac |
|
BLAKE2b-256 | 3d475e494867e8155bfbcb7ac2773b3cde65be80779780ac43a7fdfd46f93b47 |