Toolbox for the cloud.
Project description
Cloud Toolbox
Decouple your applications from cloud providers with carefully crafted service interfaces.
Requirements
- Python 3.8+
Installation
To install Cloud Toolbox, use pip:
pip install cloudtoolbox
Extras
Cloud Toolbox offers the following optional dependencies for easy installation of provider SDKs:
cloudtoolbox[amazon]- Installs the Amazon AWS SDK.cloudtoolbox[google]- Installs the Google Cloud SDK.cloudtoolbox[all]- Installs SDKs for both providers.
Example
Uploading a file to Google Cloud Storage.
from cloud import factory
from cloud.google.storage import Uploader
FileUploader = factory.storage_uploader(Uploader)
bucket = "my-bucket"
filename = "notes.txt"
filepath = f"/path/to/{filename}"
uploader = FileUploader()
uploader.upload(bucket, filename, filepath)
Switching from Cloud Storage to Amazon S3.
# Replace this import
from cloud.google.storage import Uploader
# For this one
from cloud.amazon.s3 import Uploader
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
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 cloudtoolbox-0.5.0.tar.gz.
File metadata
- Download URL: cloudtoolbox-0.5.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5beafb48cd8e36a019964edb6a255ba5b9f272dff8f0e5c318bfc3062bea10e0
|
|
| MD5 |
e223e99a82dc5ceb0e7f2878cabaac89
|
|
| BLAKE2b-256 |
6a15fe675651c492a8243c5b99e3b43cf5101d2760a8e7f21cce4f9e85e8779b
|
File details
Details for the file cloudtoolbox-0.5.0-py3-none-any.whl.
File metadata
- Download URL: cloudtoolbox-0.5.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbe4e8e29bc1c32981911e061aafefc0956d077bc2c410b9615db46309e7eec4
|
|
| MD5 |
11415ec6c51b5897732fe4af1a15fa2b
|
|
| BLAKE2b-256 |
21b2422da5066f7ec4d5947a1efcf8fb215a2a6b0ea4cc1dcd71ef4e1d33bc64
|