gov-data-api-suite
Async Python adapters for free/open government and public data APIs.
Built on async-rest-adapter — every adapter handles retry, rate-limit, attribution injection, and typed error responses automatically.
Installation
pip install gov-data-api-suite
Quick start
from backend import KoladaAdapter, KoladaConfig, SMHIAdapter, SMHIConfig
# Swedish municipality KPIs (Kolada)
async with KoladaAdapter(config=KoladaConfig()) as adapter:
result = await adapter.search_kpis("befolkning")
print(result.data)
# Weather forecasts (SMHI)
async with SMHIAdapter(config=SMHIConfig()) as adapter:
forecast = await adapter.get_point_forecast(59.33, 18.07)
print(forecast.data)
Providers
Swedish government
| Adapter | Description |
|---|---|
ArbetsformedlingenAdapter |
Swedish Public Employment Service |
BolagsverketAdapter |
Swedish Companies Registration Office |
BoverketAdapter |
Swedish National Board of Housing |
HavochvattenAdapter |
Swedish Agency for Marine and Water Management |
KoladaAdapter |
Municipal KPI database |
NaturvardsverketAdapter |
Swedish Environmental Protection Agency |
PolisenAdapter |
Swedish Police — public events |
RiksbankenAdapter |
Swedish central bank — interest rates, exchange rates |
RiksdagAdapter |
Swedish Parliament — members, votes, documents |
SCBAdapter |
Statistics Sweden |
SGUAdapter |
Geological Survey of Sweden |
SkatteverketAdapter |
Swedish Tax Agency |
SkolverketAdapter |
Swedish National Agency for Education |
SMHIAdapter |
Swedish weather and hydrology institute |
ValmyndighetenAdapter |
Swedish Election Authority |
International
| Adapter | Description |
|---|---|
ECBAdapter |
European Central Bank |
EurostatAdapter |
EU statistics |
IMFAdapter |
International Monetary Fund |
WorldBankAdapter |
World Bank open data |
Search / Geo
| Adapter | Description |
|---|---|
DuckDuckGoAdapter |
DuckDuckGo Instant Answer API |
OpenStreetMapAdapter |
Nominatim geocoding |
Attribution
All adapters inject metadata["attribution"] into every successful response with the correct license, source text, and URL for the provider.
Requirements
- Python 3.12+
- async-rest-adapter ≥ 0.1.0
- httpx ≥ 0.27
- pydantic ≥ 2.0
License
MIT
Metadata
Release files for gov-data-api-suite 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gov_data_api_suite-0.2.0.tar.gz | 181.3 kB | Without provenance | Details for gov_data_api_suite-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gov_data_api_suite-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gov_data_api_suite-0.2.0-py3-none-any.whl |
Total release size: 465.3 kB
Release files / gov_data_api_suite-0.2.0.tar.gz
| Download URL | gov_data_api_suite-0.2.0.tar.gz |
|---|---|
| Size | 181.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97c594418eb4e9d4314d558fe58aaa950c8d8f00a3e354e8c3d9bca88f413a9e
|
|
BLAKE2b-256 checksum How to use checksums |
07749ee9c0df181b921ecda08adbca99e7d5fd82d9c10b310ade55846849e75a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / gov_data_api_suite-0.2.0-py3-none-any.whl
| Download URL | gov_data_api_suite-0.2.0-py3-none-any.whl |
|---|---|
| Size | 284.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c240e84050c39f74cb7c1015eed4f1099d79ec9c5f263671501caf9970a7552
|
|
BLAKE2b-256 checksum How to use checksums |
040b1f1bef6969f2fe42d2f18f5908c3fd35e32a9b66228e049f3bd634b39256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for gov-data-api-suite 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.