Async Python client for the Veolia water portal API (eau.veolia.fr and compatible portals).
Table of contents
Installation
pip install veolia-api
For a development environment, install devbox then run:
devbox shell
Usage
import asyncio
from datetime import date
import aiohttp
from veolia_api import VeoliaAPI
async def main() -> None:
async with aiohttp.ClientSession() as session:
client_api = VeoliaAPI("your@email.com", "password", session)
# Optional: specify a portal other than the default
# client_api = VeoliaAPI("your@email.com", "password", session, portal_url="eaudetm.monespace.eau.veolia.fr")
await client_api.fetch_all_data(date(2025, 1, 1), date(2025, 9, 1))
print(client_api.account_data.daily_consumption)
print(client_api.account_data.monthly_consumption)
print(client_api.account_data.alert_settings.daily_enabled)
if __name__ == "__main__":
asyncio.run(main())
A runnable example with logging is available in usage_example.py.
Supported portals
| Portal | Region |
|---|---|
eau.veolia.fr |
France (national) |
eaudetm.monespace.eau.veolia.fr |
Eau de Toulouse Metropole |
Your portal is missing? See Adding a portal — it only requires editing one file.
Contributing
Contributions are welcome. Please read CONTRIBUTING.md for guidelines on reporting bugs, suggesting features, and submitting pull requests.
Credits
Inspired by the original work of @CorentinGrard.
License
MIT — see LICENSE.
Metadata
Release files for veolia_api 2.1.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 | |
|---|---|---|---|
| veolia_api-2.1.1.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| veolia_api-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / veolia_api-2.1.1.tar.gz
| Download URL | veolia_api-2.1.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddcbf8eb76f437df29eb6d9eb16b9e38122eb082428cf8ba40e1ab451ef97a60
|
|
BLAKE2b-256 checksum How to use checksums |
c857792b5c4e9df10f496d01271ba0370264353ae9a18b06441d1eb87f8b17c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1010-azure
|
Release files / veolia_api-2.1.1-py3-none-any.whl
| Download URL | veolia_api-2.1.1-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac6ce593f28d97b92b3c762817f400e5ea35db5ab6b4183f4eb6987059657a29
|
|
BLAKE2b-256 checksum How to use checksums |
2a1ba5d2a8c879d8e1e001718d5359058317d4ef274842918e7fcf5b456d11e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1010-azure
|