mangru — Python client for the Mangru sensor data API
Mangru is a planetary network of public environmental sensors — weather, air quality, hydrology, ocean buoys — aggregated from 33+ public networks worldwide and served through a single API.
This package is a thin synchronous client that returns
pandas DataFrames (or
geopandas GeoDataFrames, with the [geo] extra).
pip install mangru # core
pip install 'mangru[geo]' # + GeoDataFrame support
Quick start
from mangru import Client
m = Client(api_key="msk_live_...") # or set MANGRU_API_KEY env var
# Latest reading from every active METAR airport in a bounding box around Seoul
df = m.readings(network="metar", bbox=(126, 37, 128, 38))
df.head()
# id network lat lng ts country air_temp ...
# 0 RKSI metar 37.469101 126.450996 1779152400 KR 23.0 ...
# Same query as a GeoDataFrame, ready for plotting
gdf = m.readings(network="metar", bbox=(126, 37, 128, 38), geo=True)
gdf.plot(column="air_temp", legend=True)
# Time series for a single station (last 24 hours)
ts = m.history(network="aws", station="108")
ts.plot(x="ts", y="air_temp")
What you get
| Method | Returns | Notes |
|---|---|---|
m.readings(...) |
DataFrame, one row per station | Filter by network, bbox, variable |
m.stations(...) |
DataFrame, station inventory | No values, just geography |
m.history(network=, station=) |
DataFrame, time series | One row per timestep |
m.networks() |
DataFrame, network registry | Plus m.network_types() |
m.variables() |
DataFrame, variable registry | Canonical units |
m.status() |
DataFrame, per-network freshness | No API key required |
Any method that returns a DataFrame of readings or stations accepts
format="long" (one row per station × variable) and geo=True
(GeoDataFrame, requires [geo] extra). Pagination is automatic; pass
paginate=False to fetch only the first page.
Getting a key
This project is in its early phase and not yet open for general key issuance. For inquiries, contact changrami@gmail.com.
Documentation
Full API reference, including all filter parameters and response fields, is at https://docs.mangru.live.
Citing
If you use Mangru data in published research, please cite Mangru alongside the original upstream network for each source — see the "Data sources and attribution" section of the docs for the full list with attribution URLs.
License
MIT. Mangru aggregates data from many upstream networks; each operates under its own license and Mangru passes their data through without re-licensing. See the docs for per-network attribution requirements.
Metadata
Release files for mangru 0.1.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 |
|---|---|---|---|---|
| mangru-0.1.0.tar.gz | 14.5 kB | Without provenance | Details for mangru-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mangru-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mangru-0.1.0-py3-none-any.whl |
Total release size: 29.1 kB
Release files / mangru-0.1.0.tar.gz
| Download URL | mangru-0.1.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e10370afb4120ff8b4c11f78a5025c8419c1b004028eb9f76eb46169fbb461ee
|
|
BLAKE2b-256 checksum How to use checksums |
02d7f773d68ab0e710dd1df31c536beef33ffd7998a073e6bcd660309151e6e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / mangru-0.1.0-py3-none-any.whl
| Download URL | mangru-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
868b950b794d74722ed2f7dedabc065b63f4cbfdec68fb436d5e3e5b81fa1ed7
|
|
BLAKE2b-256 checksum How to use checksums |
a654ec12087613ee4dc72c69a01a5920c2ba66f63f8acee7979ba054234d0550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for mangru 0.1.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.