Version 0.0.27
Get your water meter data from your online Suez account (<www.toutsurmoneau.fr>) as well as other sites managed by Suez and using the same interface.
Two Classes are provided:
AsyncClientis an asynchronous clientClientis a legacy synchronous client, compatible with modulepySuez
pip install toutsurmoneautoutsurmoneau [-h] -u _user_name_here_ -p _password_here_ [-c _meter_id_] [-e _action_]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())}")import toutsurmoneau
client = toutsurmoneau.Client('_username_here_', '_password_here_')
print(f">>{client.contracts()}")The sync object returns the same values as pySuez.
This module was inspired from pySuez from Ooii.
Open developer tools in browser, and select the network tab. Then apply the following filter:
-nr-data -google -1password -cookiebot -acticdn -xiti -cloudfront -qualtrics
As the API is not really public, it changes sometimes, and the module also needs some adjustments.
Release procedure:
source .venv/bin/activate
make inst
make bumpver
make release
make publish