mloda-plugin-govdata 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. mloda_plugin_govdata-0.2.2/PKG-INFO +147 -0
  2. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/README.md +3 -3
  3. mloda_plugin_govdata-0.2.2/mloda_plugin_govdata.egg-info/PKG-INFO +147 -0
  4. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/pyproject.toml +2 -1
  5. mloda_plugin_govdata-0.2.1/PKG-INFO +0 -29
  6. mloda_plugin_govdata-0.2.1/mloda_plugin_govdata.egg-info/PKG-INFO +0 -29
  7. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/LICENSE +0 -0
  8. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/__init__.py +0 -0
  9. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/__init__.py +0 -0
  10. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/__init__.py +0 -0
  11. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/bundeswahlleiterin.py +0 -0
  12. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/core/__init__.py +0 -0
  13. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/core/cache.py +0 -0
  14. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/core/client.py +0 -0
  15. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/core/discovery.py +0 -0
  16. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/core/locator.py +0 -0
  17. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/core/parse.py +0 -0
  18. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/feature.py +0 -0
  19. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/population.py +0 -0
  20. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/reader.py +0 -0
  21. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/__init__.py +0 -0
  22. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/conftest.py +0 -0
  23. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_cache.py +0 -0
  24. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_client.py +0 -0
  25. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_discovery.py +0 -0
  26. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_parse.py +0 -0
  27. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_parse_hypothesis.py +0 -0
  28. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_reader.py +0 -0
  29. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/tests/test_uba.py +0 -0
  30. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata/feature_groups/govdata/uba.py +0 -0
  31. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata.egg-info/SOURCES.txt +0 -0
  32. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata.egg-info/dependency_links.txt +0 -0
  33. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata.egg-info/requires.txt +0 -0
  34. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/mloda_plugin_govdata.egg-info/top_level.txt +0 -0
  35. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/setup.cfg +0 -0
  36. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/tests/test_demo_definition.py +0 -0
  37. {mloda_plugin_govdata-0.2.1 → mloda_plugin_govdata-0.2.2}/tests/test_mloda_imports.py +0 -0
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.4
2
+ Name: mloda-plugin-govdata
3
+ Version: 0.2.2
4
+ Summary: mloda plugin providing connectors and harmonization for German government data (GovData.de CKAN API, Destatis GENESIS API v3).
5
+ Author-email: Tom Kaltofen <tomkaltofen@mloda.ai>
6
+ License-Expression: Apache-2.0
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: mloda<0.11.0,>=0.10.0
11
+ Requires-Dist: mloda-testing>=0.3.1
12
+ Requires-Dist: httpx>=0.27
13
+ Requires-Dist: pandas>=2.0
14
+ Requires-Dist: pyarrow>=17.0
15
+ Requires-Dist: pydantic>=2.0
16
+ Requires-Dist: tenacity>=8.0
17
+ Provides-Extra: demo
18
+ Requires-Dist: marimo>=0.14; extra == "demo"
19
+ Provides-Extra: dev
20
+ Requires-Dist: tox; extra == "dev"
21
+ Requires-Dist: tox-uv; extra == "dev"
22
+ Requires-Dist: uv>=0.11.15; extra == "dev"
23
+ Requires-Dist: pytest; extra == "dev"
24
+ Requires-Dist: ruff; extra == "dev"
25
+ Requires-Dist: mypy; extra == "dev"
26
+ Requires-Dist: bandit; extra == "dev"
27
+ Requires-Dist: hypothesis; extra == "dev"
28
+ Requires-Dist: respx; extra == "dev"
29
+ Requires-Dist: pandas-stubs; extra == "dev"
30
+ Dynamic: license-file
31
+
32
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/mloda-ai/mloda-plugin-govdata/blob/main/LICENSE)
33
+ [![mloda](https://img.shields.io/badge/built%20with-mloda-blue.svg)](https://github.com/mloda-ai/mloda)
34
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
35
+ [![Tests](https://github.com/mloda-ai/mloda-plugin-govdata/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/mloda-ai/mloda-plugin-govdata/actions/workflows/test.yml?query=branch%3Amain)
36
+ [![Prototype Fund](https://img.shields.io/badge/Prototype%20Fund-Jahrgang%2002-f1c40f.svg)](https://prototypefund.de)
37
+
38
+ # mloda-plugin-govdata
39
+
40
+ Connectors for German open government data, built on [mloda](https://github.com/mloda-ai/mloda). Request the columns you want as mloda features; the plugin handles CKAN discovery, download with caching and retries, and parsing (German CSV or publisher JSON) into a typed Arrow table.
41
+
42
+ Three example datasets cover the M1 themes: population (GovData CSV), elections (Bundeswahlleiterin `kerg.csv`), and environment (UBA Air Data JSON).
43
+
44
+ ## Status
45
+
46
+ Young but working. All three example readers run end to end, with paginated dataset search, cached downloads with retries, and unit plus property-based tests behind them. Every reader is a thin subclass of `BaseGovDataReader` that overrides only the parse step; new datasets follow the same path (see [docs/adding-a-reader.md](https://github.com/mloda-ai/mloda-plugin-govdata/blob/main/docs/adding-a-reader.md)). Development happens in a 6-month Prototype Fund stage (June to November 2026), so the API may still shift between releases.
47
+
48
+ ## Usage
49
+
50
+ Read the Stuttgart population dataset (via GovData) as a typed PyArrow table:
51
+
52
+ ```python
53
+ from mloda.user import Feature, mloda
54
+ from mloda_plugin_govdata.feature_groups.govdata import StuttgartPopulationReader
55
+
56
+ slug = "einwohner-nach-altersgruppen-und-stadtbezirken"
57
+ result = mloda.run_all(
58
+ [
59
+ Feature("Einwohner", options={StuttgartPopulationReader: slug}),
60
+ Feature("Stadtbezirk", options={StuttgartPopulationReader: slug}),
61
+ ],
62
+ compute_frameworks=["PyArrowTable"],
63
+ )
64
+ table = result[0] # pyarrow.Table with the requested columns
65
+ result.plan # resolved execution steps: which FeatureGroup ran on which framework
66
+ ```
67
+
68
+ The options key is the reader class or its class-name string; both select the same reader. The option value is a GovData dataset slug or a direct distribution URL. The license is read from the CKAN distribution metadata. Set `BaseGovDataReader.cache_dir` to control where downloads are cached. For any other GovData CSV dataset, `GovDataReader` works out of the box and reads every column as a string; subclass it and set `schema` for typed columns.
69
+
70
+ Don't know the slug yet? Search GovData with the paginated CKAN `package_search` API:
71
+
72
+ ```python
73
+ from mloda_plugin_govdata.feature_groups.govdata import build_client, search_datasets
74
+
75
+ with build_client() as client:
76
+ for dataset in search_datasets(client, "einwohner stuttgart", max_results=10):
77
+ print(dataset.name, "|", dataset.title)
78
+ ```
79
+
80
+ `search_datasets` walks the result pages lazily (`page_size` per request) and stops at `max_results` or the end of the result set.
81
+
82
+ Got a slug but not the column names? `peek` lists what you can request as features:
83
+
84
+ ```python
85
+ StuttgartPopulationReader.peek(slug) # {"Stichtag": "date32[day]", "Stadtbezirk": "string", ...}
86
+ ```
87
+
88
+ It works on every reader (`BundeswahlleiterinReader.peek(kerg)`, `UbaAirReader.peek(url)`) and downloads through the cache, so the actual feature request reuses the file. A typo in a feature name fails with the available columns and a close-match suggestion instead of a raw KeyError.
89
+
90
+ The elections reader handles a direct CSV URL whose file has a multi-row merged header (Bundeswahlleiterin `kerg.csv`):
91
+
92
+ ```python
93
+ from mloda_plugin_govdata.feature_groups.govdata import BundeswahlleiterinReader
94
+
95
+ kerg = "https://www.bundeswahlleiterin.de/bundestagswahlen/2025/ergebnisse/opendata/btw25/csv/kerg.csv"
96
+ result = mloda.run_all(
97
+ [Feature("Gebiet", options={BundeswahlleiterinReader: kerg})],
98
+ compute_frameworks=["PyArrowTable"],
99
+ )
100
+ ```
101
+
102
+ The environment reader fetches the Umweltbundesamt (UBA) Air Data v4 `measures` endpoint (REST JSON) and flattens it to one typed row per station and timestamp. `uba_measures_url` builds the query (here: hourly ozone at station 143):
103
+
104
+ ```python
105
+ from mloda_plugin_govdata.feature_groups.govdata import UbaAirReader, uba_measures_url
106
+
107
+ url = uba_measures_url(station=143, component=3, scope=2, date_from="2025-01-01", date_to="2025-01-01")
108
+ result = mloda.run_all(
109
+ [
110
+ Feature("date_start", options={UbaAirReader: url}),
111
+ Feature("value", options={UbaAirReader: url}),
112
+ ],
113
+ compute_frameworks=["PyArrowTable"],
114
+ )
115
+ ```
116
+
117
+ Columns are `station_id`, `date_start`, `component_id`, `scope_id`, `value`, `date_end`, and `index` (the air-quality index). Component and scope ids come from the UBA `components` and `scopes` endpoints.
118
+
119
+ ## Demo
120
+
121
+ An interactive [marimo](https://marimo.io) notebook walks through dataset discovery and all three example datasets. The notebook lives in the repository (not in the published package), so run it from a source checkout:
122
+
123
+ ```bash
124
+ git clone https://github.com/TomKaltofen/mloda-plugin-govdata.git
125
+ cd mloda-plugin-govdata
126
+ uv sync --all-extras
127
+ uv run marimo edit demos/govdata_demo.py
128
+ ```
129
+
130
+ The notebook hits the live GovData, Bundeswahlleiterin, and UBA endpoints; downloads are cached locally after the first run.
131
+
132
+ ## Related Repositories
133
+
134
+ - **[mloda](https://github.com/mloda-ai/mloda)**: the core library this plugin builds on. You declare which features you need; mloda resolves how to compute them.
135
+
136
+ - **[mloda-registry](https://github.com/mloda-ai/mloda-registry)**: plugin registry and development guides for the mloda ecosystem.
137
+
138
+ ## Funding
139
+
140
+ Developed as part of the [Prototype Fund](https://prototypefund.de) (Round 2 / Jahrgang 02), funded by the German Federal Ministry of Research, Technology and Space (BMFTR) and supported by the [Open Knowledge Foundation Deutschland](https://okfn.de). Funding code (Förderkennzeichen): **16IS26S11**. Stage 1 funding period: 6 months from June 2026.
141
+
142
+ <p>
143
+ <img src="https://raw.githubusercontent.com/mloda-ai/mloda-plugin-govdata/main/logos/bmftr.png" alt="Funded by the Federal Ministry of Research, Technology and Space (BMFTR)" height="110">
144
+ &nbsp;&nbsp;&nbsp;
145
+ <img src="https://raw.githubusercontent.com/mloda-ai/mloda-plugin-govdata/main/logos/prototypefund.png" alt="Supported by the Prototype Fund" height="110">
146
+ </p>
147
+
@@ -12,7 +12,7 @@ Three example datasets cover the M1 themes: population (GovData CSV), elections
12
12
 
13
13
  ## Status
14
14
 
15
- Young but working. All three example readers run end to end, with paginated dataset search, cached downloads with retries, and unit plus property-based tests behind them. Every reader is a thin subclass of `BaseGovDataReader` that overrides only the parse step; new datasets follow the same path (see [docs/adding-a-reader.md](docs/adding-a-reader.md)). Development happens in a 6-month Prototype Fund stage (June to November 2026), so the API may still shift between releases.
15
+ Young but working. All three example readers run end to end, with paginated dataset search, cached downloads with retries, and unit plus property-based tests behind them. Every reader is a thin subclass of `BaseGovDataReader` that overrides only the parse step; new datasets follow the same path (see [docs/adding-a-reader.md](https://github.com/mloda-ai/mloda-plugin-govdata/blob/main/docs/adding-a-reader.md)). Development happens in a 6-month Prototype Fund stage (June to November 2026), so the API may still shift between releases.
16
16
 
17
17
  ## Usage
18
18
 
@@ -109,8 +109,8 @@ The notebook hits the live GovData, Bundeswahlleiterin, and UBA endpoints; downl
109
109
  Developed as part of the [Prototype Fund](https://prototypefund.de) (Round 2 / Jahrgang 02), funded by the German Federal Ministry of Research, Technology and Space (BMFTR) and supported by the [Open Knowledge Foundation Deutschland](https://okfn.de). Funding code (Förderkennzeichen): **16IS26S11**. Stage 1 funding period: 6 months from June 2026.
110
110
 
111
111
  <p>
112
- <img src="logos/bmftr.png" alt="Funded by the Federal Ministry of Research, Technology and Space (BMFTR)" height="110">
112
+ <img src="https://raw.githubusercontent.com/mloda-ai/mloda-plugin-govdata/main/logos/bmftr.png" alt="Funded by the Federal Ministry of Research, Technology and Space (BMFTR)" height="110">
113
113
  &nbsp;&nbsp;&nbsp;
114
- <img src="logos/prototypefund.png" alt="Supported by the Prototype Fund" height="110">
114
+ <img src="https://raw.githubusercontent.com/mloda-ai/mloda-plugin-govdata/main/logos/prototypefund.png" alt="Supported by the Prototype Fund" height="110">
115
115
  </p>
116
116
 
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.4
2
+ Name: mloda-plugin-govdata
3
+ Version: 0.2.2
4
+ Summary: mloda plugin providing connectors and harmonization for German government data (GovData.de CKAN API, Destatis GENESIS API v3).
5
+ Author-email: Tom Kaltofen <tomkaltofen@mloda.ai>
6
+ License-Expression: Apache-2.0
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: mloda<0.11.0,>=0.10.0
11
+ Requires-Dist: mloda-testing>=0.3.1
12
+ Requires-Dist: httpx>=0.27
13
+ Requires-Dist: pandas>=2.0
14
+ Requires-Dist: pyarrow>=17.0
15
+ Requires-Dist: pydantic>=2.0
16
+ Requires-Dist: tenacity>=8.0
17
+ Provides-Extra: demo
18
+ Requires-Dist: marimo>=0.14; extra == "demo"
19
+ Provides-Extra: dev
20
+ Requires-Dist: tox; extra == "dev"
21
+ Requires-Dist: tox-uv; extra == "dev"
22
+ Requires-Dist: uv>=0.11.15; extra == "dev"
23
+ Requires-Dist: pytest; extra == "dev"
24
+ Requires-Dist: ruff; extra == "dev"
25
+ Requires-Dist: mypy; extra == "dev"
26
+ Requires-Dist: bandit; extra == "dev"
27
+ Requires-Dist: hypothesis; extra == "dev"
28
+ Requires-Dist: respx; extra == "dev"
29
+ Requires-Dist: pandas-stubs; extra == "dev"
30
+ Dynamic: license-file
31
+
32
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/mloda-ai/mloda-plugin-govdata/blob/main/LICENSE)
33
+ [![mloda](https://img.shields.io/badge/built%20with-mloda-blue.svg)](https://github.com/mloda-ai/mloda)
34
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
35
+ [![Tests](https://github.com/mloda-ai/mloda-plugin-govdata/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/mloda-ai/mloda-plugin-govdata/actions/workflows/test.yml?query=branch%3Amain)
36
+ [![Prototype Fund](https://img.shields.io/badge/Prototype%20Fund-Jahrgang%2002-f1c40f.svg)](https://prototypefund.de)
37
+
38
+ # mloda-plugin-govdata
39
+
40
+ Connectors for German open government data, built on [mloda](https://github.com/mloda-ai/mloda). Request the columns you want as mloda features; the plugin handles CKAN discovery, download with caching and retries, and parsing (German CSV or publisher JSON) into a typed Arrow table.
41
+
42
+ Three example datasets cover the M1 themes: population (GovData CSV), elections (Bundeswahlleiterin `kerg.csv`), and environment (UBA Air Data JSON).
43
+
44
+ ## Status
45
+
46
+ Young but working. All three example readers run end to end, with paginated dataset search, cached downloads with retries, and unit plus property-based tests behind them. Every reader is a thin subclass of `BaseGovDataReader` that overrides only the parse step; new datasets follow the same path (see [docs/adding-a-reader.md](https://github.com/mloda-ai/mloda-plugin-govdata/blob/main/docs/adding-a-reader.md)). Development happens in a 6-month Prototype Fund stage (June to November 2026), so the API may still shift between releases.
47
+
48
+ ## Usage
49
+
50
+ Read the Stuttgart population dataset (via GovData) as a typed PyArrow table:
51
+
52
+ ```python
53
+ from mloda.user import Feature, mloda
54
+ from mloda_plugin_govdata.feature_groups.govdata import StuttgartPopulationReader
55
+
56
+ slug = "einwohner-nach-altersgruppen-und-stadtbezirken"
57
+ result = mloda.run_all(
58
+ [
59
+ Feature("Einwohner", options={StuttgartPopulationReader: slug}),
60
+ Feature("Stadtbezirk", options={StuttgartPopulationReader: slug}),
61
+ ],
62
+ compute_frameworks=["PyArrowTable"],
63
+ )
64
+ table = result[0] # pyarrow.Table with the requested columns
65
+ result.plan # resolved execution steps: which FeatureGroup ran on which framework
66
+ ```
67
+
68
+ The options key is the reader class or its class-name string; both select the same reader. The option value is a GovData dataset slug or a direct distribution URL. The license is read from the CKAN distribution metadata. Set `BaseGovDataReader.cache_dir` to control where downloads are cached. For any other GovData CSV dataset, `GovDataReader` works out of the box and reads every column as a string; subclass it and set `schema` for typed columns.
69
+
70
+ Don't know the slug yet? Search GovData with the paginated CKAN `package_search` API:
71
+
72
+ ```python
73
+ from mloda_plugin_govdata.feature_groups.govdata import build_client, search_datasets
74
+
75
+ with build_client() as client:
76
+ for dataset in search_datasets(client, "einwohner stuttgart", max_results=10):
77
+ print(dataset.name, "|", dataset.title)
78
+ ```
79
+
80
+ `search_datasets` walks the result pages lazily (`page_size` per request) and stops at `max_results` or the end of the result set.
81
+
82
+ Got a slug but not the column names? `peek` lists what you can request as features:
83
+
84
+ ```python
85
+ StuttgartPopulationReader.peek(slug) # {"Stichtag": "date32[day]", "Stadtbezirk": "string", ...}
86
+ ```
87
+
88
+ It works on every reader (`BundeswahlleiterinReader.peek(kerg)`, `UbaAirReader.peek(url)`) and downloads through the cache, so the actual feature request reuses the file. A typo in a feature name fails with the available columns and a close-match suggestion instead of a raw KeyError.
89
+
90
+ The elections reader handles a direct CSV URL whose file has a multi-row merged header (Bundeswahlleiterin `kerg.csv`):
91
+
92
+ ```python
93
+ from mloda_plugin_govdata.feature_groups.govdata import BundeswahlleiterinReader
94
+
95
+ kerg = "https://www.bundeswahlleiterin.de/bundestagswahlen/2025/ergebnisse/opendata/btw25/csv/kerg.csv"
96
+ result = mloda.run_all(
97
+ [Feature("Gebiet", options={BundeswahlleiterinReader: kerg})],
98
+ compute_frameworks=["PyArrowTable"],
99
+ )
100
+ ```
101
+
102
+ The environment reader fetches the Umweltbundesamt (UBA) Air Data v4 `measures` endpoint (REST JSON) and flattens it to one typed row per station and timestamp. `uba_measures_url` builds the query (here: hourly ozone at station 143):
103
+
104
+ ```python
105
+ from mloda_plugin_govdata.feature_groups.govdata import UbaAirReader, uba_measures_url
106
+
107
+ url = uba_measures_url(station=143, component=3, scope=2, date_from="2025-01-01", date_to="2025-01-01")
108
+ result = mloda.run_all(
109
+ [
110
+ Feature("date_start", options={UbaAirReader: url}),
111
+ Feature("value", options={UbaAirReader: url}),
112
+ ],
113
+ compute_frameworks=["PyArrowTable"],
114
+ )
115
+ ```
116
+
117
+ Columns are `station_id`, `date_start`, `component_id`, `scope_id`, `value`, `date_end`, and `index` (the air-quality index). Component and scope ids come from the UBA `components` and `scopes` endpoints.
118
+
119
+ ## Demo
120
+
121
+ An interactive [marimo](https://marimo.io) notebook walks through dataset discovery and all three example datasets. The notebook lives in the repository (not in the published package), so run it from a source checkout:
122
+
123
+ ```bash
124
+ git clone https://github.com/TomKaltofen/mloda-plugin-govdata.git
125
+ cd mloda-plugin-govdata
126
+ uv sync --all-extras
127
+ uv run marimo edit demos/govdata_demo.py
128
+ ```
129
+
130
+ The notebook hits the live GovData, Bundeswahlleiterin, and UBA endpoints; downloads are cached locally after the first run.
131
+
132
+ ## Related Repositories
133
+
134
+ - **[mloda](https://github.com/mloda-ai/mloda)**: the core library this plugin builds on. You declare which features you need; mloda resolves how to compute them.
135
+
136
+ - **[mloda-registry](https://github.com/mloda-ai/mloda-registry)**: plugin registry and development guides for the mloda ecosystem.
137
+
138
+ ## Funding
139
+
140
+ Developed as part of the [Prototype Fund](https://prototypefund.de) (Round 2 / Jahrgang 02), funded by the German Federal Ministry of Research, Technology and Space (BMFTR) and supported by the [Open Knowledge Foundation Deutschland](https://okfn.de). Funding code (Förderkennzeichen): **16IS26S11**. Stage 1 funding period: 6 months from June 2026.
141
+
142
+ <p>
143
+ <img src="https://raw.githubusercontent.com/mloda-ai/mloda-plugin-govdata/main/logos/bmftr.png" alt="Funded by the Federal Ministry of Research, Technology and Space (BMFTR)" height="110">
144
+ &nbsp;&nbsp;&nbsp;
145
+ <img src="https://raw.githubusercontent.com/mloda-ai/mloda-plugin-govdata/main/logos/prototypefund.png" alt="Supported by the Prototype Fund" height="110">
146
+ </p>
147
+
@@ -6,8 +6,9 @@ build-backend = "setuptools.build_meta"
6
6
  name = "mloda-plugin-govdata"
7
7
  # Always start at least at 0.2.0 to make semver work.
8
8
  # Initial release for semver needs also a manually pushed minimum tag (likely 0.2.0).
9
- version = "0.2.1"
9
+ version = "0.2.2"
10
10
  description = "mloda plugin providing connectors and harmonization for German government data (GovData.de CKAN API, Destatis GENESIS API v3)."
11
+ readme = "README.md"
11
12
  license = "Apache-2.0"
12
13
  authors = [{ name = "Tom Kaltofen", email = "tomkaltofen@mloda.ai" }]
13
14
  dependencies = [
@@ -1,29 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mloda-plugin-govdata
3
- Version: 0.2.1
4
- Summary: mloda plugin providing connectors and harmonization for German government data (GovData.de CKAN API, Destatis GENESIS API v3).
5
- Author-email: Tom Kaltofen <tomkaltofen@mloda.ai>
6
- License-Expression: Apache-2.0
7
- Requires-Python: >=3.10
8
- License-File: LICENSE
9
- Requires-Dist: mloda<0.11.0,>=0.10.0
10
- Requires-Dist: mloda-testing>=0.3.1
11
- Requires-Dist: httpx>=0.27
12
- Requires-Dist: pandas>=2.0
13
- Requires-Dist: pyarrow>=17.0
14
- Requires-Dist: pydantic>=2.0
15
- Requires-Dist: tenacity>=8.0
16
- Provides-Extra: demo
17
- Requires-Dist: marimo>=0.14; extra == "demo"
18
- Provides-Extra: dev
19
- Requires-Dist: tox; extra == "dev"
20
- Requires-Dist: tox-uv; extra == "dev"
21
- Requires-Dist: uv>=0.11.15; extra == "dev"
22
- Requires-Dist: pytest; extra == "dev"
23
- Requires-Dist: ruff; extra == "dev"
24
- Requires-Dist: mypy; extra == "dev"
25
- Requires-Dist: bandit; extra == "dev"
26
- Requires-Dist: hypothesis; extra == "dev"
27
- Requires-Dist: respx; extra == "dev"
28
- Requires-Dist: pandas-stubs; extra == "dev"
29
- Dynamic: license-file
@@ -1,29 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mloda-plugin-govdata
3
- Version: 0.2.1
4
- Summary: mloda plugin providing connectors and harmonization for German government data (GovData.de CKAN API, Destatis GENESIS API v3).
5
- Author-email: Tom Kaltofen <tomkaltofen@mloda.ai>
6
- License-Expression: Apache-2.0
7
- Requires-Python: >=3.10
8
- License-File: LICENSE
9
- Requires-Dist: mloda<0.11.0,>=0.10.0
10
- Requires-Dist: mloda-testing>=0.3.1
11
- Requires-Dist: httpx>=0.27
12
- Requires-Dist: pandas>=2.0
13
- Requires-Dist: pyarrow>=17.0
14
- Requires-Dist: pydantic>=2.0
15
- Requires-Dist: tenacity>=8.0
16
- Provides-Extra: demo
17
- Requires-Dist: marimo>=0.14; extra == "demo"
18
- Provides-Extra: dev
19
- Requires-Dist: tox; extra == "dev"
20
- Requires-Dist: tox-uv; extra == "dev"
21
- Requires-Dist: uv>=0.11.15; extra == "dev"
22
- Requires-Dist: pytest; extra == "dev"
23
- Requires-Dist: ruff; extra == "dev"
24
- Requires-Dist: mypy; extra == "dev"
25
- Requires-Dist: bandit; extra == "dev"
26
- Requires-Dist: hypothesis; extra == "dev"
27
- Requires-Dist: respx; extra == "dev"
28
- Requires-Dist: pandas-stubs; extra == "dev"
29
- Dynamic: license-file