Skip to main content

Client API for eau.veolia.fr

Project description

Python wrapper for using Veolia API : https://www.eau.veolia.fr/

Installation

First of all, you need to install devbox if you don't have a python environment

Once the previous step is done, simply run

devbox shell

That's it !

If you already have a python environment just run

pip install veolia-api

Usage

"""Example of usage of the Veolia API"""

import asyncio
from datetime import date

import aiohttp

from veolia_api.veolia_api import VeoliaAPI


async def main() -> None:
    """Main function."""

    async with aiohttp.ClientSession() as session:
        client_api = VeoliaAPI("email", "password", session)

        # e.g Fetch data from 2025-1 to 2025-9
        await client_api.fetch_all_data(date(2025, 1, 1), date(2025, 9, 1))

        # Display fetched data
        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())

You can use usage_example.py

cp usage_example.py.dist usage_example.py
python usage_example.py

Credits

This repository is inspired by the work done by @CorentinGrard. Thanks to him for his work.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veolia_api-2.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veolia_api-2.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file veolia_api-2.1.0.tar.gz.

File metadata

  • Download URL: veolia_api-2.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.11.0-1018-azure

File hashes

Hashes for veolia_api-2.1.0.tar.gz
Algorithm Hash digest
SHA256 3b424e84ff66fd7936dacf6cd5f280ee1fd977d2e4a7fff63b8374c43ac00375
MD5 06ad080bd4206bbf520e07985d92affd
BLAKE2b-256 449142c796ec0aa2175cfde10c45d0bee7af46a0c28a8bf3a8264963250280c0

See more details on using hashes here.

File details

Details for the file veolia_api-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: veolia_api-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.11.0-1018-azure

File hashes

Hashes for veolia_api-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0180b5ae23500186969309e94b0d6b5022f3e01f09414f1042c16a6d3b9141d1
MD5 aa76e8a18f7f231ef0db9fffc94a1834
BLAKE2b-256 b59b8fa3dc8f4092479689c8bb62231b8bbb4849d885ec420e40154900fe2350

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page