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
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
Close
Hashes for pyplatform-common-2020.12.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a61c632a971883ffb1dc7e45dd51bb426cd0052653a695ff9b9f6dbfaa3d055 |
|
MD5 | 34f56b0892a1634e254c1b9f00a25534 |
|
BLAKE2b-256 | 211975c37569d865a28a9495fba6685f4f387f6b70c404d174b905fc5b4d3e7d |
Close
Hashes for pyplatform_common-2020.12.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac31a1501ecf51bc759d246d48d52daaf9be1c3f62b4ac4013a7007cfae5558 |
|
MD5 | af46f86f479174885eb05bc60fb2205d |
|
BLAKE2b-256 | 991f5a816bbfe77a40e9a2199d78c9b7877def5518d42658e311fbff32a519aa |