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.

WIP: currently there is zero data validation and raw unparsed XML is returned (as a dict) or the raw csv data is returned as a string.

Installing

$ pip install elexon

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.

Example

from elexon import Elexon

api = Elexon('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')

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.0.4.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

elexon-0.0.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elexon-0.0.4.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for elexon-0.0.4.tar.gz
Algorithm Hash digest
SHA256 526336d2812736c260495d31f42014e3772723ecdd3a30a2e07d746ddc581abd
MD5 7553180fb1d9d417bc546f7f886f9b8c
BLAKE2b-256 3f8b64add08435b4753a7fc4995293ea4f1b7413e27ce664d48a93222de4ddb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elexon-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for elexon-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c60e4fbaf88678a647bb360b026def69c386f825d5bdffbd98fce6b440ac513
MD5 bd834dee40c090e30c56df0b44d2fae5
BLAKE2b-256 9c6f047b53ee59b28d950ce729409cad69aae5013cf79d37f45bc1d619848ec0

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