Retrieve water meter information from Suez web site https://www.toutsurmoneau.fr/ and other water providers in france.
Project description
py-mon-eau
Version 0.0.24
Get your water meter data from your online Suez account (<www.toutsurmoneau.fr>) as well as other sites using the same interface.
Two Classes are provided:
AsyncClient
is an asynchronous clientClient
is a legacy synchronous client, compatible with modulepySuez
Installation
pip install toutsurmoneau
CLI Usage
toutsurmoneau [-h] -u _user_name_here_ -p _password_here_ [-c _meter_id_] [-e _action_]
API Usage
Async use
import toutsurmoneau
import aiohttp
import asyncio
async def the_job():
async with aiohttp.ClientSession() as session:
obj = toutsurmoneau.AsyncClient(
username='_username_here_', password='_password_here_', session=session)
return await obj.async_contracts()
print(f">>{asyncio.run(the_job())}")
Sync use
import toutsurmoneau
client = toutsurmoneau.Client('_username_here_', '_password_here_')
print(f">>{client.contracts()}")
The sync object returns the same values as pySuez
.
History
This module was inspired from pySuez from Ooii.
Dev data
Web browser filter: -nr-data -google -1password -cookiebot -acticdn -xiti -cloudfront -qualtrics
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toutsurmoneau-0.0.24.tar.gz
(18.7 kB
view hashes)
Built Distribution
Close
Hashes for toutsurmoneau-0.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d96636401cc489e83e374332e239dc42674257fe07e12d9d23b4b1e766208637 |
|
MD5 | e2ef0fc943322e0e9fcef5f0eefa71d9 |
|
BLAKE2b-256 | 52fd95981abc5ab18326322404e61e63f65e31fd6bc4fe4a5da400aed117497b |