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
pyplatform-common-2020.8.1.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for pyplatform-common-2020.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db13f12f6d44d5f0d30d9aec7c9f3ecc34387f12cbf213ad524b173dc91952cf |
|
MD5 | ee03ae1c7b0cca654f0af5e3eb0a8401 |
|
BLAKE2b-256 | 6459d54975741612d66b335c76651fdad4444ccff0822fbc3a5a34749e40a86f |
Close
Hashes for pyplatform_common-2020.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec807bbea519169eb4f79ce259cbbd264f5de8f4aed6f0eb0405f73fd3e18f00 |
|
MD5 | 83ecab57d87cc2157f4b55c12bc61b2c |
|
BLAKE2b-256 | 5826fdb4e6934fe5f850201bb386285e6531c0738458bed1a47e3977919ec23b |