LCPDelta Python Package
Project description
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.10 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_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.
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 lcpdelta-1.4.0a0.tar.gz
.
File metadata
- Download URL: lcpdelta-1.4.0a0.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d1af57de856ec1bb7d3f4b954895eb3c1db198b4009427311d2a80ad29cd5e9 |
|
MD5 | 7f62a1b10c29ab8b74faf2673d869885 |
|
BLAKE2b-256 | 3c3fd6dafd03f52ddefd96f9f16c6f22f02e850cd981911093fad5ba29f052d1 |
Provenance
The following attestation bundles were made for lcpdelta-1.4.0a0.tar.gz
:
Publisher:
release.yml
on lcp-llp/lcpdelta-enact
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
lcpdelta-1.4.0a0.tar.gz
- Subject digest:
6d1af57de856ec1bb7d3f4b954895eb3c1db198b4009427311d2a80ad29cd5e9
- Sigstore transparency entry: 146772267
- Sigstore integration time:
- Predicate type:
File details
Details for the file LCPDelta-1.4.0a0-py3-none-any.whl
.
File metadata
- Download URL: LCPDelta-1.4.0a0-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61acd5ecfc08d80bb407dc91f38f67581dbf1423c93fe921af54c1c2f515b2f2 |
|
MD5 | dcb4892962db2d578baa6b0bfb4c056c |
|
BLAKE2b-256 | 3aa7349ccb3301114de64ba3d3a6fbc209e8be5e672c08a5c96f0d84c7063914 |
Provenance
The following attestation bundles were made for LCPDelta-1.4.0a0-py3-none-any.whl
:
Publisher:
release.yml
on lcp-llp/lcpdelta-enact
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
lcpdelta-1.4.0a0-py3-none-any.whl
- Subject digest:
61acd5ecfc08d80bb407dc91f38f67581dbf1423c93fe921af54c1c2f515b2f2
- Sigstore transparency entry: 146772268
- Sigstore integration time:
- Predicate type: