The LCPDelta Python Package

The LCPDelta Python package is the simplest way to interact with our APIs.

It contains helper methods for requesting data from our endpoints and subscribing to our push groups, and does not require the management of a Bearer Token (sometimes referred to as a Private API Key).

📘

Open Source

Our Python package is open source and can be found at https://github.com/lcp-llp/lcpdelta-enact

Prerequisites:

To install the LCPDelta python package, run the following in your terminal:

pip install LCPDelta

You can then import the Enact or FLEXtrack modules into your Python files:

from lcp_delta import enact
import lcp_delta.flextrack as flextrack

To use the helpers in the package you will need your Username and Public API key. These will have been emailed to you on sign up, but if you do not know these please reach out to [email protected]

username = "insert_username_here"
public_api_key = "insert_public_api_key_here"

enact_api_helper = enact.APIHelper(username, public_api_key)
enact_dps_helper = enact.DPSHelper(username, public_api_key)
flextrack_api_helper = flextrack.APIHelper(username, public_api_key)

Examples using this Python package will be given throughout the rest of the documentation and API Reference.

📘

SSL Certificate Verification

In rare cases, users may encounter SSL errors in the terminal, which often indicate issues with certificate verification. If this occurs, you may want to consider the 'pip-system-certs' package, which enables pip to verify SSL/TLS connections to servers with system-trusted certificates: https://pypi.org/project/pip-system-certs/.

Please be advised that 'pip-system-certs' is a third-party solution. We recommend you proceed with caution and at your own discretion, as we do not maintain this software and thus cannot assume responsibility for its effectiveness or security.

If you find that the issue persists, please reach out to [email protected].