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.16
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:
Client
is a legacy synchronous client, compatible with modulepySuez
AsyncClient
is an asynchronous client
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 is inspired from pySuez from Ooii itself inspired by domoticz sensor and pyLinky.
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.16.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for toutsurmoneau-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d9493c62ee6aaed5c12ad297142a55ddc42bb85179d4d3ab8c45356130e2dd |
|
MD5 | 9ea5c2e5e8bc501057f922612dfd57e9 |
|
BLAKE2b-256 | 0251b568ac0a04a54def1b3b9f55e45cbd095c768f57ed2807d45b136283f0e5 |