Metadata-Version: 2.1
Name: pyplatform-common
Version: 2020.11.1
Summary: Pyplatform-common package provides utility, file management and authentication functions for interacting with APIs and compute services.
Home-page: https://github.com/mhadi813/pyplatform
Author: Muhammad Hadi
Author-email: mhadi813@gmail.com
License: BSD
Keywords: google API pivotal cloud functions
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Office/Business
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: pandas (==1.1.2)
Requires-Dist: oauth2client (==4.1.3)
Requires-Dist: pytz (==2019.3)
Requires-Dist: requests (==2.23.0)
Requires-Dist: requests-ntlm (==1.1.0)
Requires-Dist: PyJWT (==1.7.1)
Requires-Dist: retrying (==1.3.3)
Requires-Dist: bs4 (==0.0.1)
Requires-Dist: lxml (==4.4.2)

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

## Installation
```python
pip install pyplatform-common
```

## Authentication and environment variables
Refer to [main page](https://github.com/mhadi813/pyplatform) for documentation on authentication

## Exploring the modules
```python

from pyplatform.common import *
show_me()

import pyplatform.datawarehouse as dw
show_me(dw)
```

## Usage
### calling Google catalog-api with core python package
```python

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
```python

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

