A simple wrapper for the Elexon BMRS API
Project description
Elexon BMRS API
A simple wrapper for the Elexon BMRS API.
Installing
- Install with pip (recommended):
$ pip install elexon
- Alternatively, you can grab the latest source code from GitHub:
$ git clone https://github.com/MichaelKavanagh/elexon.git
$ python setup.py install
Getting Started
- Register on the ELEXON Portal.
- Retrieve API Key.
- Replace
API_KEY
in the example below with your API Key. - Profit.
Usage
Supported Elexon BMRS Reports
For the full list of namespaces, methods, parameters and data types see methods.py.
Example
from elexon import ElexonRawClient
api = ElexonRawClient('API_KEY') # available for free from the Elexon Portal
# Actual Aggregated Generation per Type
generation = api.Transparency.B1620(SettlementDate = '2020-01-01', Period = '5')
# Alternatively, use the general request() function by passing the endpoint in with the arguments:
generation = api.request('B1620', SettlementDate = '2020-01-01', Period = '5')
Support
There have been cases where the wrapper/API doesn't behave due to inconsistencies or errors in Elexon's documentation.
If you believe you have come across a bug, please open a GitHub issue.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Further Reading
https://www.elexon.co.uk/guidance-note/bmrs-api-data-push-user-guide/
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 elexon-0.2.2.tar.gz
.
File metadata
- Download URL: elexon-0.2.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020716d3bdd24a46ec8f46ed4c10dc03deb5a7bd725c019c5e6bd79f40743bdd |
|
MD5 | 78c015657147303bd90771e89712eb0c |
|
BLAKE2b-256 | 3a7f5708218483de1c0df1b207d4a5d37e23d4deb1a4399f0d123fcde4e33f15 |
File details
Details for the file elexon-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: elexon-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49b9548fcfff4260f22a2d364f053a1900a35408d58a700b63ec234f99f9cd9 |
|
MD5 | 7d2d4595637979c47af0909fda953ebb |
|
BLAKE2b-256 | 2ad099bc50c9be61469263a7c59f13c388f25724077b19ab059384fed62d3159 |