Skip to main content

Pyplatform-common package provides utility, file management and authentication functions for interacting with APIs and compute services.

Project description

Pyplatform-common package provides utility, file management and authentication functions for interacting with APIs and compute services.

Installation

pip install pyplatform-common

Authentication and environment variables

Refer to main page for documentation on authentication

Exploring the modules

from pyplatform.common import *
show_me()

import pyplatform.datawarehouse as dw
show_me(dw)

Usage

calling Google catalog-api with core python package

from pyplatform.common.utils import *
import requests

url = 'https://cloudbilling.googleapis.com/v1/services'
headers = {'Authorization' : gcp_get_auth_header(scope='https://www.googleapis.com/auth/cloud-platform')
          ,'Content-Type':'Application/json'}

response  = requests.request('GET',url,headers=headers)
response.status_code

downloading deployed application code package from pivotal cloud

from pyplatform.common.pivotal_cloud import *
cf_download_package(app_name='hello_app')

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

pyplatform-common-2020.12.1.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

pyplatform_common-2020.12.1-py3-none-any.whl (13.6 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