A convenient Helper library for various cloud services
Project description
Cloud Helper
The Cloud Helper is a basic wrapper over various cloud libraries for different cloud providers. Which is a single point to connect various cloud vendors and perform operations to the respective cloud services.
Installation
You can install the Cloud Helper from PyPI:
pip install cloud-helper
The Cloud Helper is supported on Python 3.6 and above.
How to use
One of the very reason to create the library is to have a single library which provides facilities of connecting to various cloud providers and perform various operations. Another reason is a way to run your application and decide whether the application should connect to local cloud environment running in a Docker container or to an original cloud service, with just a simple environment variable set prior to run your application.
This powerfull feature will allow you to decide to run your application in local docker environment or in a production environment without changing your code.
Example:
Install a local AWS environment.
Localstack is one of the great tool, which can be install by using the following command:
$ pip install localstack
NOTE - make sure you have Docker installed before running localstack command
spin-up your localstack environment using Docker
$ localstack start
Localstack exposes a proxy URL:
http://localhost:4566
Setup an environment variable using the above proxy url:
export AWS_LOCAL_PROXY=http://localhost:4566
Now you can use the code from this library without passing any endpoint proxy url:
from cloud_helper.aws_helper.connections import client
s3_client = client("s3")
from cloud_helper.aws_helper.connections import resource
s3_resource = resource("s3")
from cloud_helper.aws_helper.connections import Session
session = Session()
Author Notes
This library is under progress.
I, as an author, will add different features in near future.
License & copyright
Licensed under the MIT License
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
File details
Details for the file cloud-helper-1.0.1.tar.gz
.
File metadata
- Download URL: cloud-helper-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a60842313c249b99a4733c4a16e5ff95980d63c7deeba1a0ca2863e9f9da3b3 |
|
MD5 | e69607bc3a781c2ef7721a49c9a5b847 |
|
BLAKE2b-256 | 447d5cb00042ce85af5e1fed936d2381f6b0ea1412135a9b493b8781e8b6d27f |
File details
Details for the file cloud_helper-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: cloud_helper-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e90016ece11ac111b656a3f155e977228ebb24fa3f6a613db599a471a3e8a16 |
|
MD5 | 634a31b67d6c69ca626e37f2d55925eb |
|
BLAKE2b-256 | b0803cfa4c2bad14bbb49bcac28312d754a7ceb3b4157026040bf8db52dd1bda |