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
Close
Hashes for cloud_storage_client-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280a71e2587c002a0f289ea91ce5d615882b293987c6fe99513317dabc4d777c |
|
MD5 | f0cdf95d744c46306fb8a0dd0d5545f1 |
|
BLAKE2b-256 | 12ff7f72af73c11f3e0ac183407eac3e02f06b62c1efdb963f8bb1c04903d4c9 |
Close
Hashes for cloud_storage_client-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1aabf7a8cc89c06f6ada8dea8241cfecf37d0ff526fa89091dce6b6bcd6c8a5 |
|
MD5 | 8032b9329ab49686b660ac8f38d03c67 |
|
BLAKE2b-256 | a73125f66e301d2690a7a6012144a117fbc006da32835b6f6cf9e201bd7660de |