Skip to main content

A simple wrapper for the Elexon BMRS API

Project description

Elexon BMRS API

A simple wrapper for the Elexon BMRS API.

Installing

  1. Install with pip (recommended):
$ pip install elexon
  1. Alternatively, you can grab the latest source code from GitHub:
$ git clone https://github.com/MichaelKavanagh/elexon.git
$ python setup.py install

Getting Started

  1. Register on the ELEXON Portal.
  2. Retrieve API Key.
  3. Replace API_KEY in the example below with your API Key.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elexon-0.2.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

elexon-0.2.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file elexon-0.2.3.tar.gz.

File metadata

  • Download URL: elexon-0.2.3.tar.gz
  • Upload date:
  • Size: 8.9 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.7

File hashes

Hashes for elexon-0.2.3.tar.gz
Algorithm Hash digest
SHA256 7740844a31cc191d057d629d35f9b72e5efa5841c834bad8460be74b1700685c
MD5 09b032677b187e2cf0be38d52cab02ee
BLAKE2b-256 f007d1e565a899744fa38c92c81ef8231757fedd4aeeb2df35268fb7515bdc3f

See more details on using hashes here.

File details

Details for the file elexon-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: elexon-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.7

File hashes

Hashes for elexon-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb931090fd725b1a547ac383d98e1e5925ec549ab2a86c097a6ebe2167899f20
MD5 f647392dfdacdbba28519fabe90853e3
BLAKE2b-256 a69f8fcaf49e9227561ac38c67c4355929bf63966dcc37c188353677d32846a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page