Parsers for DWD's open weather data.
Project description
dwdparse
Parsers for DWD's open weather data.
The DWD (Deutscher Wetterdienst), as Germany's meteorological service, publishes a myriad of meteorological observations and calculations as part of their Open Data program.
dwdparse is a Python library for parsing the various formats that this data
is published in, with no dependencies outside the standard library. It serves
as the parsing backend for Bright Sky.
Our development effort focuses mainly on the data that is made available
through Bright Sky, although we are very open to requests or contributions
regarding other parsing targets. If you are looking for a more complete set of
parsers - including for data from other weather agencies - and you don't mind
the extra dependencies, take a look at the excellent
wetterdienst.
Looking for something specific?
I just want to retrieve some weather data
You can use the free public Bright Sky instance!
I want to parse DWD weather files or contribute to dwdparse's source code
Read on. :)
Quickstart
You can use this package both as a stand-alone command-line tool or as a Python library.
Stand-alone DWD file parsing
-
Install the
dwdparsepackage from PyPI:$ pip install dwdparse
-
Call
dwdparse, providing your target file (or URL) as argument:$ dwdparse stundenwerte_TU_01766_akt.zip
This will output a newline-separated list of JSON records. Note that all
numerical weather data is converted to SI units. If you wish to use DWD
units, or if you need both DWD and WMO station IDs, check out the --units
option and the example section with dwdparse --help.
Parsing DWD files from Python code
-
Install the
dwdparsepackage from PyPI:$ pip install dwdparse
-
In Python, import one of the
dwdparseparsers (or theget_parserutility function) fromdwdparse, then call it'sparse()method with the path of the file you would like to parse. This will return an iterable over weather records:from dwdparse import get_parser DWD_FILE_PATH = 'stundenwerte_TU_01766_akt.zip' parser_class = get_parser(DWD_FILE_PATH) parser = parser_class() for record in parser.parse(DWD_FILE_PATH): print(record)
Acknowledgements
dwdparse is developed as the main parsing core for Bright
Sky. Bright Sky's development is
boosted by the priceless guidance and support of the Open Knowledge
Foundation's Prototype Fund
program, and is generously funded by Germany's Federal Ministry of Education
and Research. Obvious as it may be, it should be
mentioned that none of this would be possible without the painstaking,
never-ending effort of the Deutscher Wetterdienst.
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 dwdparse-0.9.20.tar.gz.
File metadata
- Download URL: dwdparse-0.9.20.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b21cbaa2bbe628f0249c1992f38f77e67961e493065abd5bd3b62464061dae7
|
|
| MD5 |
73ee5a20e0ddbd60f565b57ad2fb1186
|
|
| BLAKE2b-256 |
216f3d3b186b3527fcec97c1093bf0f1752c07c6b4f805bb6cdf20286e2e66e9
|
Provenance
The following attestation bundles were made for dwdparse-0.9.20.tar.gz:
Publisher:
main.yml on jdemaeyer/dwdparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dwdparse-0.9.20.tar.gz -
Subject digest:
4b21cbaa2bbe628f0249c1992f38f77e67961e493065abd5bd3b62464061dae7 - Sigstore transparency entry: 597675691
- Sigstore integration time:
-
Permalink:
jdemaeyer/dwdparse@7b48b969e694fd262d94c0b51e83fb6f91aee6f7 -
Branch / Tag:
refs/tags/v0.9.20 - Owner: https://github.com/jdemaeyer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@7b48b969e694fd262d94c0b51e83fb6f91aee6f7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dwdparse-0.9.20-py3-none-any.whl.
File metadata
- Download URL: dwdparse-0.9.20-py3-none-any.whl
- Upload date:
- Size: 18.5 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 |
fa9989cc38d970be1901de9938b4c90d56ec21d461e952a1a4a6963e0a21b43d
|
|
| MD5 |
7369c119f686a6d8df5dbc288312cb4a
|
|
| BLAKE2b-256 |
2822d16d7370090263535148a870e3a4180f87eeb7bee61c27bc129c4e8ae63e
|
Provenance
The following attestation bundles were made for dwdparse-0.9.20-py3-none-any.whl:
Publisher:
main.yml on jdemaeyer/dwdparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dwdparse-0.9.20-py3-none-any.whl -
Subject digest:
fa9989cc38d970be1901de9938b4c90d56ec21d461e952a1a4a6963e0a21b43d - Sigstore transparency entry: 597675696
- Sigstore integration time:
-
Permalink:
jdemaeyer/dwdparse@7b48b969e694fd262d94c0b51e83fb6f91aee6f7 -
Branch / Tag:
refs/tags/v0.9.20 - Owner: https://github.com/jdemaeyer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@7b48b969e694fd262d94c0b51e83fb6f91aee6f7 -
Trigger Event:
push
-
Statement type: