Library to list, upload and download objects from AWS S3, Azure Blob Storage, and GCP Storage.
Project description
![https://www.gnu.org/licenses/gpl-3.0](https://img.shields.io/badge/License-GPL%20v3-blue.svg “GPL-3.0”) # safehaven
## Description This library allows users to list, upload and download objects to and from the following cloud providers:
Amazon Web Services (AWS S3)
Microsoft Azure (Blob Store)
Google Cloud Platform (GCP Storage)
## Usage ### Installation ` pip install safehaven `
### AWS ` from safehaven import Aws s3 = Aws() s3.create_client('s3-shared-object-store-test', 'file_names', 'region', 'aws_access_key_id', 'aws_secret_access_key') s3.list_objects() s3.upload_objects() s3.download_objects() `
### Azure ` from safehaven import Azure blob = Azure() blob.create_client('container_name', 'file_names', 'connection_string') blob.list_objects() blob.upload_objects() blob.download_objects() `
### GCP ` from safehaven import Gcp gcp = Gcp() gcp.create_client('project_name' 'storage_bucket_name', 'location_and_name_of_files', 'key_file') gcp.list_objects() gcp.upload_objects() gcp.download_objects() `
### Testing this library ` pip install moto python3 ~/safehaven/tests/test_safehaven.py `
## Links * Code: https://github.com/tzankov/safehaven * Releases on Pypi: https://pypi.org/project/safehaven
Project details
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
File details
Details for the file safehaven-0.1.3.tar.gz
.
File metadata
- Download URL: safehaven-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 747a8b93eaecf92fdda47629154a66e3c4b2242a2f502cdd7a273e420ad48839 |
|
MD5 | 290f1e496fd83f84831d95ffcab95e22 |
|
BLAKE2b-256 | 5c5694c43f488b99583a4bf6e4f4292de96c4691474aaa3ff180caf1f5197756 |
File details
Details for the file safehaven-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: safehaven-0.1.3-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f09093ae9f2b0a376b54b049f4d645221dd65614f2d2f63b13bbfc08d52fc31 |
|
MD5 | d740c9ad8fbff5c295847bb7db53684b |
|
BLAKE2b-256 | 5120ed260b939014d72f4802c8e6985b211edd507076080a6df19ebcebc7e990 |