Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

LCPDelta Python Package

The LCPDelta Python package provides streamlined access to data available from the Enact, FLEXtrack APIs.

It contains helper methods for requesting data from our API endpoints or subscribing to push groups, all of which are detailed on our developer documentation site.

Installation

The Python package requires Python 3.11 or greater, and can be installed via:

pip install LCPDelta

Usage

The Enact and FLEXtrack modules can be imported as follows:

from lcp_delta import enact
import lcp_delta.flextrack as flextrack

The package requires a username and API key, which will be emailed on signup. Helper objects can then be instantiated as follows:

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)

From here, you can call any of the available helper methods to retrieve data in one call or listen for pushes. The following example makes use of Enact's Series Data endpoint:

from datetime import date

from_date = date(2023,10,1)
to_date = date(2024,10,1)

series_id = "LcpDemandvsGrid"

response = enact_api_helper.get_series_data(
    series_id,
    from_date,
    to_date,
    country_id = "Gb",
    time_zone_id="UTC"
)

print(response.head(5))

Check out our API guides for detailed instructions on getting started with the API, our Recipes page for example scripts using our Python package, and our API reference for details on each specific API endpoint (and corresponding Python package method).

Full documentation of our API and Python package can be found on our documentation site.

Contributing

Check out our contribution guidelines and code of conduct.

Metadata

Release files for LCPDelta 2.2.3a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LCPDelta 2.2.3a1
File Size Uploaded Provenance Actions
lcpdelta-2.2.3a1.tar.gz 54.4 kB With provenance Details for lcpdelta-2.2.3a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for LCPDelta 2.2.3a1
File Interpreter ABI Platform Actions
lcpdelta-2.2.3a1-py3-none-any.whl Python 3 none any Details for lcpdelta-2.2.3a1-py3-none-any.whl

Total release size: 120.1 kB

Release files / lcpdelta-2.2.3a1.tar.gz

Download URL lcpdelta-2.2.3a1.tar.gz
Size 54.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7500d1319fc5297cefb488d4e5b105c93b3c672f41b9074a9a09785b1c1e5ef6
BLAKE2b-256 checksum
How to use checksums
5314870bdc0509471e70a36316c40e3ae94528d15651069af54dbef005d8c005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / lcpdelta-2.2.3a1-py3-none-any.whl

Download URL lcpdelta-2.2.3a1-py3-none-any.whl
Size 65.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06ce300d00d5e9abdd44093b83fea279db2a0bd2cc7ac33b278c951a3d4035d8
BLAKE2b-256 checksum
How to use checksums
151b341870e155283bc812389fdd86d301267fe64339c689ad121f0f0269552f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for LCPDelta 2.2.3a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lcpdelta-2.2.3a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page