Python-based client to Ping Data Intelligence APIs
Project description
pingintel-api
Python-based API for Ping Data Technology products.
Setup
pip install pingintel-api
You will probably also want to create a ~/.pingintel.ini
file, which can store your API keys. (They can also be provided in the environment, via --auth-token
on the commandline, or passed as arguments):
Example ~/.pingintel_ini
file:
[sovfixer]
# use this by default
SOVFIXER_AUTH_TOKEN = abcdxxxx
# use _STG for staging environment. if not provided, fall back to SOVFIXER_AUTH_TOKEN.
SOVFIXER_AUTH_TOKEN_STG = efghxxxx
# use _DEV for staging environment. if not provided, fall back to SOVFIXER_AUTH_TOKEN.
SOVFIXER_AUTH_TOKEN_DEV = efghxxxx
[pingradar]
# use _DEV or _STG versions as desired
PINGRADAR_AUTH_TOKEN = abcdxxxx
[pingmaps]
# use _DEV or _STG versions as desired
PINGMAPS_AUTH_TOKEN = abcdxxxx
Usage
This package installs a number of commandline tools:
sovfixerapi
pingradarapi
pingmapsapi
These tools are thin wrappers around the client API libraries.
See the examples/ directory for some usage examples. For instance, to submit an SOV to Ping SOV Fixer and poll for completion:
from pingintel_api import SOVFixerAPIClient
api_client = SOVFixerAPIClient()
api_client.fix_sov("test_sov.xlsx")
API Documentation
For complete documentation on the REST API, please see https://api.sovfixer.com/docs/.
Release New Versions
pingintel-api
uses hatch
for pypi packaging and updates. Install it for your platform first.
-
Update the
__about__.py
file with the new version number. -
hatch build
: Create the necessary pypi packages. -
Create a
~/.pypirc
file. It should look something like this:[distutils] index-servers = pypi testpypi [pypi] repository = https://upload.pypi.org/legacy/ username = __token__ password = <your pypi token here>
-
hatch publish
: Push the new package(s) to pypi. (Note that you'll need a pypi account and to be a member of our organization for this step.)
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
File details
Details for the file pingintel_api-0.10.2.tar.gz
.
File metadata
- Download URL: pingintel_api-0.10.2.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | affa6dfb5de7d5e9abfdc25c7bd41bce068aab74d1a72788c2e1419a910b7c79 |
|
MD5 | 7ba3b1fe7cffa603fec3ea1e51188a55 |
|
BLAKE2b-256 | ea49cd65d7514b3a321e9aa3a1e2a2c68c22eb64cf695b239be6540a3520218b |
File details
Details for the file pingintel_api-0.10.2-py3-none-any.whl
.
File metadata
- Download URL: pingintel_api-0.10.2-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989454dea87bf4e655582aaccef4dfbc51e3bc6ce4b873404201e2eb3d985b28 |
|
MD5 | 32964290aa92028ce597a4ca510ea261 |
|
BLAKE2b-256 | f5c21f083e7f244f99af23eb3655e7643b93ed64a3ba95b63b6fa763f4958ddb |