
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Python client library for API and commandline tools for Ping products.
pip install pingintel-api
You will probably 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
[pingvision]
# use _DEV or _STG versions as desired
PINGVISION_AUTH_TOKEN = abcdxxxx
[pingdata]
# use _DEV or _STG versions as desired
PINGDATA_AUTH_TOKEN = abcdxxxx
[pingmaps]
# use _DEV or _STG versions as desired
PINGMAPS_AUTH_TOKEN = abcdxxxx
This package installs a number of commandline tools:
sovfixerapi
pingvisionapi
pingdataapi
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")
Usage: pingvisionapi [OPTIONS] COMMAND [ARGS]...
Options:
-e, --environment [prod|prodeu|staging|dev]
-u, --api-url TEXT Provide base url (instead of environment,
primarily for debugging)
--auth-token TEXT Provide auth token via --auth-token or
PINGVISION_AUTH_TOKEN environment variable.
-v, --verbose Can be used multiple times. -v for INFO, -vv
for DEBUG, -vvv for very DEBUG.
--help Show this message and exit.
Commands:
activity List submission activity.
create Create new submission from file(s).
download-document Download document by document URL.
get Get submission detail.
list-submission-statuses List submission statuses.
list-teams List teams.
Usage: sovfixerapi [OPTIONS] COMMAND [ARGS]...
Options:
-e, --environment [prod|prodeu|staging|dev]
-u, --api-url TEXT Provide base url (instead of environment,
primarily for debugging)
--auth-token TEXT Provide auth token via --auth-token or
SOVFIXER_AUTH_TOKEN environment variable.
-v, --verbose Can be used multiple times. -v for INFO, -vv
for DEBUG, -vvv for very DEBUG.
--help Show this message and exit.
Commands:
activity List submission activity.
check-progress Check the progress of a submission.
fix Extract insurance information from file(s).
get-output Fetch or generate an output from a previous extraction.
Usage: pingdataapi [OPTIONS] COMMAND [ARGS]...
Options:
-e, --environment [prod|prodeu|staging|dev]
-u, --api-url TEXT Provide base url (instead of environment,
primarily for debugging)
--auth-token TEXT Provide auth token via --auth-token or
PINGDATA_AUTH_TOKEN environment variable.
-v, --verbose Can be used multiple times. -v for INFO, -vv
for DEBUG, -vvv for very DEBUG.
-D, --delegate-to ORG_SHORT_NAME
Delegate to another organization. Provide
the 'short name' of the desired delegatee.
Requires the `delegate` permission.
--help Show this message and exit.
Commands:
bulk-enhance Request data about multiple addresses using async API.
enhance Request data synchronously about a single address.
For complete documentation on the REST API, please see https://docs.pingintel.com/.
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.)
FAQs
Python-based client to Ping Data Intelligence APIs
We found that pingintel-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.