Client library for the ComboCurve REST API
Project description
ComboCurve client for Python
Authorization
combocurve_api
requires the API key and service account provided by Inside Petroleum, as shown in the example below:
from combocurve_api_v1 import ServiceAccount, ComboCurveAuth
# Use this to create your service account manually
service_account = ServiceAccount(
client_email='YOUR_CLIENT_EMAIL',
client_id='YOUR_CLIENT_ID',
private_key='YOUR_PRIVATE_KEY',
private_key_id='YOUR_PRIVATE_KEY_id'
)
# Or use this to load it from a JSON file
# service_account = ServiceAccount.from_file("PATH_TO_JSON_FILE")
# Set your API key
api_key = 'YOUR_API_KEY'
combocurve_auth = ComboCurveAuth(service_account, api_key)
# Get auth headers
headers = combocurve_auth.get_auth_headers()
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
Built Distribution
Close
Hashes for combocurve_api_v1-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0955481e320b27186899df165dc45ff2635aa05ab755019e2c71fb3cfe4f7468 |
|
MD5 | dbdf617bee9a52dfc3ace5831dab398f |
|
BLAKE2b-256 | 8281cc0ba8c7b34deb3d885ba67a5daf02b295dd184be33c4ce300b3d289daa6 |