Package for any cloud apis
Project description
Welcome to Cloud Utility
A python based cloud utility for multiple cloud providers under one CLI/API
Supported Cloud Platform
- Google Cloud Platform
- Google Cloud Storage API
Installation
pip install cloud_utility
Prerequisite
-
Please make sure you have setup environment variable "GOOGLE_APPLICATION_CREDENTIALS" with the google service account json key inside your code
import os os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/path/to/key.json"
from oauth2client.client import GoogleCredentials # Grab the application's default credentials from the environment. credentials = GoogleCredentials.get_application_default()
or, explicitly set-up the environment variable:
bash export GOOGLE_APPLICATION_CREDENTIALS=key.json
How to use?
from google_storage_utility import Google_Storage_Utility as gsu
a = gsu("<google-project-id>")
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
cloud_utility-0.0.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for cloud_utility-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f0b4088dd93d4f323838aaa871f4d60eb29fa7126a29aee3a28226eb16b7af |
|
MD5 | 4916fcd5ea4e4b067dd851b540de0734 |
|
BLAKE2b-256 | d4b2bfe0e53a85b3eac91fe89c3b47574f2a47cc1fc85119e75a7e1f570fab05 |