Skip to main content

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

  1. Google Cloud Platform
    • Google Cloud Storage API

Installation

pip install cloud_utility

Prerequisite

  1. 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


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)

Uploaded Source

Built Distribution

cloud_utility-0.0.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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