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')

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

Uploaded Source

Built Distribution

elexon-0.0.7-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elexon-0.0.7.tar.gz
  • Upload date:
  • Size: 6.7 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.46.1 CPython/3.7.7

File hashes

Hashes for elexon-0.0.7.tar.gz
Algorithm Hash digest
SHA256 a1de87a01315e242e61f4578f0f3b828dc0768593a8697a0f535322f33c808d6
MD5 aad65e9fc359e10ceb8e8940eea91269
BLAKE2b-256 e452ba412e5fd79b6d7a6a951ee7fcfc777ec6b8cb2ffd04af0b6bcee0866205

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elexon-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 12.2 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.46.1 CPython/3.7.7

File hashes

Hashes for elexon-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f9fa642a1b8c7a3664dab10b7b16a5092065074ddb0497b193f2841e28235b04
MD5 4884d95ca8bd6396be80bad8fd078da3
BLAKE2b-256 21c84a5ff0ce9ab550781a74b46c6c4e8d93d875e71e359373de11f309ed74b5

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