veolia_api


Nameveolia_api JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/Jezza34000/veolia-api
SummaryClient API for eau.veolia.fr
upload_time2025-09-17 13:38:12
maintainerNone
docs_urlNone
authorJezza34000
requires_python>=3.11
licenseMIT
keywords python veolia
VCS
bugtrack_url
requirements aiohttp tenacity
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align=center>
    <img src="https://upload.wikimedia.org/wikipedia/fi/thumb/2/2a/Veolia-logo.svg/250px-Veolia-logo.svg.png"/>
</p>

<p>
    <a href="https://pypi.org/project/veolia-api/"><img src="https://img.shields.io/pypi/v/veolia-api.svg"/></a>
    <a href="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white"><img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" /></a>
    <a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" /></a>
    <a href="https://github.com/Jezza34000/veolia-api/actions"><img src="https://github.com/Jezza34000/veolia-api/workflows/CI/badge.svg"/></a>
</p>

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

## Installation

```bash
pip install veolia-api
```

## Usage

```python
"""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())

```

## Credits

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Jezza34000/veolia-api",
    "name": "veolia_api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "python, veolia",
    "author": "Jezza34000",
    "author_email": "info@mail.com",
    "download_url": "https://files.pythonhosted.org/packages/ad/c4/2bbc4474cc9c85d7cfbbc4be92e1b0995177e0351a2ddcb18f73fa3347b7/veolia_api-2.0.0.tar.gz",
    "platform": null,
    "description": "<p align=center>\n    <img src=\"https://upload.wikimedia.org/wikipedia/fi/thumb/2/2a/Veolia-logo.svg/250px-Veolia-logo.svg.png\"/>\n</p>\n\n<p>\n    <a href=\"https://pypi.org/project/veolia-api/\"><img src=\"https://img.shields.io/pypi/v/veolia-api.svg\"/></a>\n    <a href=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white\"><img src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white\" /></a>\n    <a href=\"https://github.com/psf/black\"><img src=\"https://img.shields.io/badge/code%20style-black-000000.svg\" /></a>\n    <a href=\"https://github.com/Jezza34000/veolia-api/actions\"><img src=\"https://github.com/Jezza34000/veolia-api/workflows/CI/badge.svg\"/></a>\n</p>\n\nPython wrapper for using Veolia API : https://www.eau.veolia.fr/\n\n## Installation\n\n```bash\npip install veolia-api\n```\n\n## Usage\n\n```python\n\"\"\"Example of usage of the Veolia API\"\"\"\n\nimport asyncio\nfrom datetime import date\n\nimport aiohttp\n\nfrom veolia_api.veolia_api import VeoliaAPI\n\n\nasync def main() -> None:\n    \"\"\"Main function.\"\"\"\n\n    async with aiohttp.ClientSession() as session:\n        client_api = VeoliaAPI(\"email\", \"password\", session)\n\n        # e.g Fetch data from 2025-1 to 2025-9\n        await client_api.fetch_all_data(date(2025, 1, 1), date(2025, 9, 1))\n\n        # Display fetched data\n        print(client_api.account_data.daily_consumption)\n        print(client_api.account_data.monthly_consumption)\n        print(client_api.account_data.alert_settings.daily_enabled)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n\n```\n\n## Credits\n\nThis repository is inspired by the work done by @CorentinGrard. Thanks to him for his work.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Client API for eau.veolia.fr",
    "version": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Jezza34000/veolia-api",
        "Repository": "https://github.com/Jezza34000/veolia-api"
    },
    "split_keywords": [
        "python",
        " veolia"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6763ca2c0e1b5202098eae653a5817d567a8343203d2ef0091f70e2383672c99",
                "md5": "32fd7df290e8dc72d83bee9a044da661",
                "sha256": "08fe3d24cb42bd5050941842b2b6a555b59695188f86569b2e3d624f608bc04e"
            },
            "downloads": -1,
            "filename": "veolia_api-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "32fd7df290e8dc72d83bee9a044da661",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 10894,
            "upload_time": "2025-09-17T13:38:11",
            "upload_time_iso_8601": "2025-09-17T13:38:11.392504Z",
            "url": "https://files.pythonhosted.org/packages/67/63/ca2c0e1b5202098eae653a5817d567a8343203d2ef0091f70e2383672c99/veolia_api-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "adc42bbc4474cc9c85d7cfbbc4be92e1b0995177e0351a2ddcb18f73fa3347b7",
                "md5": "8504ba921591a9f1a0ad1a49924c2752",
                "sha256": "943351f200d43629566431f907d33ae0a30d5369899789e29d5805f89b22d3ea"
            },
            "downloads": -1,
            "filename": "veolia_api-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8504ba921591a9f1a0ad1a49924c2752",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 11192,
            "upload_time": "2025-09-17T13:38:12",
            "upload_time_iso_8601": "2025-09-17T13:38:12.357420Z",
            "url": "https://files.pythonhosted.org/packages/ad/c4/2bbc4474cc9c85d7cfbbc4be92e1b0995177e0351a2ddcb18f73fa3347b7/veolia_api-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-17 13:38:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Jezza34000",
    "github_project": "veolia-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "aiohttp",
            "specs": [
                [
                    "<",
                    "4.0.0"
                ],
                [
                    ">=",
                    "3.11.11"
                ]
            ]
        },
        {
            "name": "tenacity",
            "specs": [
                [
                    ">=",
                    "9.1.2"
                ],
                [
                    "<",
                    "10.0.0"
                ]
            ]
        }
    ],
    "lcname": "veolia_api"
}
        
Elapsed time: 0.62477s