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.5.tar.gz
.
File metadata
- Download URL: safehaven-0.1.5.tar.gz
- Upload date:
- Size: 3.6 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 | e4cc2e3ecb5d57375fdb8a5063aa8df999fe449cf814a6c98f3c56f822ab7389 |
|
MD5 | f62c221a1004ad93fc1a0b3d6b451f75 |
|
BLAKE2b-256 | ee32c4ad005b9ab49638a0a0ee90a94383889122a690ae65e69e6f7355ace66e |
File details
Details for the file safehaven-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: safehaven-0.1.5-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 | e663342313201dc9569e9d09739e9038cf8568cedf1fc1d56979660a49b66eb7 |
|
MD5 | c6f4dd69d69b80aeaa3343d81f410010 |
|
BLAKE2b-256 | 3568ea46e4544082a162e2c0126c17d6f8e54316bf7a9e60fb263cd7abca6c33 |