imgw-pib
Python wrapper for IMGW-PIB API.
What it is and what it does
This package provides an async Python client for querying weather and hydrological data from Poland's IMGW-PIB (Institute of Meteorology and Water Management) API. It wraps the HTTP API calls using aiohttp, allowing non-blocking requests suitable for integration into async applications. The library handles API errors, network timeouts, and client errors with specific exception types.
The package is built on aiofiles, aiohttp, orjson, and yarl for efficient async I/O and JSON parsing. It targets modern Python (3.13+) and is classified as production-stable. Use it when you need to fetch current or historical weather and water-level data for Polish monitoring stations in an async context.
Use it for:
- Fetch real-time weather data from Polish meteorological stations for a weather dashboard or alert system.
- Monitor hydrological station data (water levels, flow rates) for flood prediction or water resource management.
- Integrate IMGW-PIB data into an async IoT or home automation system that queries multiple APIs concurrently.
- Build a data pipeline that periodically collects weather and hydrological observations for analysis or archival.
- Create a weather API aggregator that combines IMGW-PIB with other regional data sources.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
An async Python wrapper for the IMGW-PIB API that fetches weather and hydrological station data from Poland's Institute of Meteorology and Water Management.
Yes, if you need Polish weather or hydrological data in an async Python application. The package is actively maintained, has no known vulnerabilities, and uses a permissive license. The Python 3.13+ requirement is restrictive but intentional; verify your target environment supports it. Low install friction and a clear API make it straightforward to adopt.
Install
imgw-pib on PyPI
pip
pip install imgw-pibuv
uv add imgw-pibpoetry
poetry add imgw-pibInstalling imgw-pib
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a release 18 days ago and recent commits. Requires Python 3.13 or later, which narrows compatibility to current versions only.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
import asyncio
from aiohttp import ClientSession
from imgw_pib import ImgwPib
async def main():
async with ClientSession() as session:
imgwpib = await ImgwPib.create(session, weather_station_id="12200")
weather = await imgwpib.get_weather_data()
print(weather)
asyncio.run(main())
Requires Python 3.13 or later; requires an active aiohttp ClientSession and valid IMGW-PIB station IDs.
Verify before relying
- Whether the package handles rate limiting or connection pooling for repeated API calls
- API availability and stability guarantees for the underlying IMGW-PIB service
- Whether station IDs are discoverable or must be known in advance
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.13) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aiofiles, aiohttp, orjson, yarl |
| Maintenance | actively maintained — 18 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 88,693/month — #13,710 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: imgw_pib-2.5.1-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
accuweatherAsync Python wrapper for fetching current…
permissive · top 15,000 on PyPI
giosFetches real-time air quality measurements from…
permissive · top 15,000 on PyPI
aioecowittProvides an async Python wrapper for the…
permissive · top 15,000 on PyPI
aioambientAn async Python library for querying Ambient…
permissive · top 15,000 on PyPI
pytrafikverketAsync Python client for querying Sweden's…
permissive · top 15,000 on PyPI
pyatmopyatmo provides a Python API to query Netatmo…
permissive · top 15,000 on PyPI
pyairvisualA thin async Python wrapper for the AirVisual…
permissive · top 15,000 on PyPI
simple-dwd-weatherforecastRetrieves hourly weather forecasts for the next…
permissive · top 15,000 on PyPI
meteostatMeteostat provides access to historical weather…
unclear · top 15,000 on PyPI
nextdnsAsync Python wrapper for the NextDNS API that…
permissive · top 15,000 on PyPI