Skip to main content

A package that provides an interface for downloading and processing the data of the Marktstammdatenregister (MaStR)

Project description

MaStR logo

open-mastr

A package that provides an interface for downloading and processing the Marktstammdatenregister (MaStR)

License

License

Documentation

Read the Docs

Tests

GitHub Actions

Publication

PyPI badge_joss

Data Publication

zenodo

Development

open issues closes issues closes issues closes issues

Community

contributions PyPI download month Total PyPI downloads

Introduction

The python package open-mastr provides an interface for accessing the Marktstammdatenregister (MaStR) data. The MaStR is a German register provided by the German Federal Network Agency (Bundesnetzagentur / BNetza) that keeps track of all power and gas units located in Germany. It is a daily growing dataset with millions of data points covering electricity and gas production units, electricity and gas consumers, storages, grids, and energy market participants.

Generally, and besides the offerings of open-mastr, the MaStR data can be accessed via three main options:

  1. browse, filter and download in the browser

  2. download daily provided dumps

  3. access via the web service

These access options, however, are not exactly frictionless. open-mastr thus provides an interface for and improved developer experience of accessing the data. This project is intended for individuals who wish to “just work” with the MaStR data and who do not want to deal with the idiosyncrasies of the three access options above.

In particular, open-mastr facilitates access to the daily provided MaStR dumps with download methods (bulk) and by parsing the XML files to a relational database. Furthermore, the software provides a Python wrapper to access the MaStR SOAP web service (API).

Does open-mastr edit or change the MaStR data? No. open-mastr is a wrapper around the MaStR data and does not edit or change the data. It is intended to be used as a tool for working with the MaStR data.

Benefits provided by open-mastr

Benefit

Description

Data download and parsing

Download, decode, and write data to a local database

Translation to English

Translate table names and columns from German to English as well as an English documentation page of the dataset

Data processing

Merge relevant information about different technologies to single csv files

Just here for the data? We regularly run the whole download and cleansing pipeline and upload the dataset as csv files at zenodo!

Documentation

The documentation is in Material for Mkdocs markdown format in the doc sub-folder of the repository.
Find the documentation hosted on ReadTheDocs.
The original API documentation can be found on the Webhilfe des Marktstammdatenregisters.

Installation

It is recommended to use a virtual python environment, for example conda or virtualenv.
The package is intended to be used with Python >=3.8.

PyPI

Install the current release of open-mastr with pip:

pip install open-mastr

GitHub

For development, clone this repository manually.

git clone git@github.com:OpenEnergyPlatform/open-MaStR.git
cd open-MaStR

Setup the conda environment with

conda env create -f environment.yml

Install the package with

pip install "open_mastr[dev]"

Examples of Usage

These projects already use open-mastr:

If you want to see your project in this list, write an Issue or add changes in a Pull Request.

External Resources

Besides open-mastr, some other resources exist that ease the process of working with the Marktstammdatenregister:

Collaboration

Everyone is invited to develop this repository with good intentions.
Please follow the workflow described in the CONTRIBUTING.md.

License and Citation

Software

This repository is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
See LICENSE.md for rights and obligations.
See the Cite this repository function or CITATION.cff for citation of this repository.

Data

The original dataset is licensed under the Datenlizenz Deutschland – Namensnennung – Version 2.0 (DL-DE-BY-2.0)
Copyright: Marktstammdatenregister - © Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen | DL-DE-BY-2.0

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

open_mastr-0.17.0.tar.gz (862.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_mastr-0.17.0-py3-none-any.whl (154.0 kB view details)

Uploaded Python 3

File details

Details for the file open_mastr-0.17.0.tar.gz.

File metadata

  • Download URL: open_mastr-0.17.0.tar.gz
  • Upload date:
  • Size: 862.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for open_mastr-0.17.0.tar.gz
Algorithm Hash digest
SHA256 c9e5b6ff3a9cfdb5c5d0f0859b0985a6a5a65c5445a481428dffb5239e590d5d
MD5 8a9bbe642d4f04b0b9ac189aa9eb918f
BLAKE2b-256 bb95572681f6146523e5bb300bd843b290aeb537a5887eaa887a40adddd69be9

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_mastr-0.17.0.tar.gz:

Publisher: pypi-publish.yml on OpenEnergyPlatform/open-MaStR

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file open_mastr-0.17.0-py3-none-any.whl.

File metadata

  • Download URL: open_mastr-0.17.0-py3-none-any.whl
  • Upload date:
  • Size: 154.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for open_mastr-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2388a74226e662c5ff7b6443fe9e64fe1f0cc27888b10d71028a67b9544df86
MD5 ae35e3d2981dbc44b7bfb27f87a419bc
BLAKE2b-256 a184c978bd632ee36ee12a6477de395cd6dc68f98e66cfd5fab8a8c82e936d9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_mastr-0.17.0-py3-none-any.whl:

Publisher: pypi-publish.yml on OpenEnergyPlatform/open-MaStR

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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