Python SDK

Getting started with the People Data Labs Python Helper Library, which is our open-source SDK that lets you write Python code to make HTTP requests to the People Data Labs API

The People Data Labs Python Helper Library

The People Data Labs Python Helper Library makes it easy to interact with the People Data Labs API from your Python application. You can find the most recent version of the library on PyPi. The People Data Labs Python Helper Library supports Python applications written in Python 3.7 and above.

Install the library

This library is available as a Python package, and you can install it with:

pip install peopledatalabs

Using the library

result = client.person.enrichment(
    phone="4155688415",
    pretty=True,
)
if result.ok:
    print(result.text)
else:
    print(
        f"Status: {result.status_code};"
        f"\nReason: {result.reason};"
        f"\nMessage: {result.json()['error']['message']};"
    )

More Information, Pull Requests, Feature Suggestions and Bug Reports

We've open-sourced the library, which is available on GitHub. Head there to view more information and submit pull requests, feature suggestions or bug reports.


Did this page help you?