ddlpy
(D)ata (D)istributie (L)aag is a service from Rijkswaterstaat for distributing water quantity data, more information is available at https://rijkswaterstaatdata.nl/waterdata. This package provides an API for Python and includes easy filtering of available data and stations, convenient conversion to pandas and xarray objects, automatic chunking of large data requests, error handling and much more nifty features. See also https://github.com/wstolte/rwsapi for the R API.
Install
Install the latest ddlpy PyPI release with (extra dependencies between [] are optional):
pip install rws-ddlpy[netcdf,examples]
Examples
Documentation: https://deltares.github.io/ddlpy
In the examples/notebooks folders you will find the following examples to get you started:
-
minimal_example.py -> minimal code to retrieve data.
-
retrieve_parallel_to_netcdf.py -> Code to retrieve a bulk of observations and write to netcdf files for each station.
-
measurements.ipynb -> interactive notebook to subset/inspect locations and download/plot measurements
-
waterinfo.ipynb -> interactive notebook to read csv's obained from waterinfo.rws.nl
Run ddlpy from console
With ddlpy locations you can generate a (subsetted) locations.json file, for instance:
ddlpy locations --quantity WATHTE --station hoekvanholland
With ddlpy measurements you can obtain measurements for locations/parameters in an existing locations.json, for instance:
ddlpy measurements 2023-01-01 2023-01-03
Something broke?
First check the status of the DDL (at the Updates section). If you found an issue in the data or with the Waterwebservices, please start a discussion at the Waterwebservices github. If you have a suggestion or found a bug in ddlpy, please create a issue at the ddlpy Github.
Metadata
Release files for rws-ddlpy 0.11.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 | |
|---|---|---|---|---|
| rws_ddlpy-0.11.0.tar.gz | 45.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rws_ddlpy-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.7 kB
Release files / rws_ddlpy-0.11.0.tar.gz
| Download URL | rws_ddlpy-0.11.0.tar.gz |
|---|---|
| Size | 45.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65f37183d1f5205258eb66e2b60a1322f309ee361b965ae7a604b61683fb9b2d
|
|
BLAKE2b-256 checksum How to use checksums |
c4849fb67cd8c7482dba0837a4145f29300ad1788f90a54a0d168c3b4583c6e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / rws_ddlpy-0.11.0-py3-none-any.whl
| Download URL | rws_ddlpy-0.11.0-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40085024c873dd589a3b49b4f7fd112fc0ae86a279c82e56663a0fc2c6e98a0c
|
|
BLAKE2b-256 checksum How to use checksums |
d80f4e952fe94c38c4beec323d9d8d5186fd9272cefb10eba5b8af1be7b6adb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for rws-ddlpy 0.11.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.