How to use
Provide user documentation here.
Installation
To install rws_waterinfo, do:
pip install rws-waterinfo
Run tests with:
pip install -r requirements-dev.txt
pytest
Example
Get observation data from Waterinfo using the ddapi20 API.
Location coordinates are no longer required; use the unified location codes (for example ameland.nes or hoekvanholland).
The primary change is the parameter format: the library now expects a list of lists (7 items) instead of the older 9-item format with X/Y coordinates.
New format (each inner list):
compartiment_code
eenheid_code
meetapparaat_code
grootheid_code
locatie_code
start_date (YYYY-MM-DD)
end_date (YYYY-MM-DD)
By default the client uses parallel downloads for better performance. Use the max_workers argument to control concurrency.
import pandas as pd
import rws_waterinfo as rw
# Initialize rws_waterinfo library
params = [
["OW", "", "", "WATHTE", "ameland.nes", "2025-12-01", "2026-01-01"]
]
# Default is parallel download; specify max_workers if needed
df = rw.get_data(params=params, return_df=True, max_workers=8)
print(df.head())
This function sends a request to Waterinfo for parameter information and parses the response into a Pandas DataFrame. The DataFrame contains the locations and parameters combined into a single table.
import pandas as pd
import rws_waterinfo as rw
catalog = rw.get_catalog()
print(catalog.head())
License
Copyright (c) 2026, Rijkswaterstaat
Metadata
Release files for rws-waterinfo 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rws_waterinfo-1.0.1.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rws_waterinfo-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.4 kB
Release files / rws_waterinfo-1.0.1.tar.gz
| Download URL | rws_waterinfo-1.0.1.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
052fc260a01f595c51e5637055edef7e30bb71e3b47e4f52e3a59fc09a1df68e
|
|
BLAKE2b-256 checksum How to use checksums |
b55fef3f32eb82f77143d3f8ba0318f26fd980965cdee43ffc5d64ff50d6b079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / rws_waterinfo-1.0.1-py3-none-any.whl
| Download URL | rws_waterinfo-1.0.1-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62f3a637cbaf95ed53cfa8bc851b6c0c855256fcd95e50453e4445efd8f1a08c
|
|
BLAKE2b-256 checksum How to use checksums |
144ecdbc88fb5e32a9ecd2e069cb048519c82d708072216ecee5e12759df3b50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|