A package that provides an interface for downloading and processing the data of the Marktstammdatenregister (MaStR)
Project description
open-mastr
A package that provides an interface for downloading and processing the Marktstammdatenregister (MaStR)
License |
|
Documentation |
|
Tests |
|
Publication |
|
Data Publication |
|
Development |
|
Community |
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:
browse, filter and download in the browser
download daily provided dumps
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
Installation
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:
The bundesAPI/Marktstammdaten-API is another implementation to access data via an official API.
Collaboration
License and Citation
Software
Data
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file open_mastr-0.16.1.tar.gz.
File metadata
- Download URL: open_mastr-0.16.1.tar.gz
- Upload date:
- Size: 5.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc12e70629d8f6351e49535811f5ae8cd85d23c89261d0f3b5d3adb380c1e65d
|
|
| MD5 |
c55c08eae4dc841f4a853e4bce9593b8
|
|
| BLAKE2b-256 |
75cb3ae33041f026bdce6f14758b1fbecf53582ba6917e7913b13c29462e4849
|
Provenance
The following attestation bundles were made for open_mastr-0.16.1.tar.gz:
Publisher:
pypi-publish.yml on OpenEnergyPlatform/open-MaStR
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
open_mastr-0.16.1.tar.gz -
Subject digest:
cc12e70629d8f6351e49535811f5ae8cd85d23c89261d0f3b5d3adb380c1e65d - Sigstore transparency entry: 771349584
- Sigstore integration time:
-
Permalink:
OpenEnergyPlatform/open-MaStR@2134435d59bf1127d73701bb75e97454831a2ddf -
Branch / Tag:
refs/heads/production - Owner: https://github.com/OpenEnergyPlatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@2134435d59bf1127d73701bb75e97454831a2ddf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file open_mastr-0.16.1-py3-none-any.whl.
File metadata
- Download URL: open_mastr-0.16.1-py3-none-any.whl
- Upload date:
- Size: 174.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e26a4359c686d06513d0921a3526b7f9b2e65143c7b7ecc99aa75e8f6d05c381
|
|
| MD5 |
d98c80887f6a6a86af9662dcc2bbd122
|
|
| BLAKE2b-256 |
ee42d915af0047e48c73d33da79fb7a6c9ce93799fdf7038da31d03a14cd33b0
|
Provenance
The following attestation bundles were made for open_mastr-0.16.1-py3-none-any.whl:
Publisher:
pypi-publish.yml on OpenEnergyPlatform/open-MaStR
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
open_mastr-0.16.1-py3-none-any.whl -
Subject digest:
e26a4359c686d06513d0921a3526b7f9b2e65143c7b7ecc99aa75e8f6d05c381 - Sigstore transparency entry: 771349618
- Sigstore integration time:
-
Permalink:
OpenEnergyPlatform/open-MaStR@2134435d59bf1127d73701bb75e97454831a2ddf -
Branch / Tag:
refs/heads/production - Owner: https://github.com/OpenEnergyPlatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@2134435d59bf1127d73701bb75e97454831a2ddf -
Trigger Event:
workflow_dispatch
-
Statement type: