Skip to main content

Toolbox for the cloud.

Project description

Cloud Toolbox

Tests PyPI - Version PyPI - Python Version

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

cloudtoolbox-0.5.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

cloudtoolbox-0.5.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for cloudtoolbox-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5beafb48cd8e36a019964edb6a255ba5b9f272dff8f0e5c318bfc3062bea10e0
MD5 e223e99a82dc5ceb0e7f2878cabaac89
BLAKE2b-256 6a15fe675651c492a8243c5b99e3b43cf5101d2760a8e7f21cce4f9e85e8779b

See more details on using hashes here.

File details

Details for the file cloudtoolbox-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudtoolbox-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbe4e8e29bc1c32981911e061aafefc0956d077bc2c410b9615db46309e7eec4
MD5 11415ec6c51b5897732fe4af1a15fa2b
BLAKE2b-256 21b2422da5066f7ec4d5947a1efcf8fb215a2a6b0ea4cc1dcd71ef4e1d33bc64

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page