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.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
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
Open developer tools in browser, and select the network tab. Then apply the following filter:
-nr-data -google -1password -cookiebot -acticdn -xiti -cloudfront -qualtrics
Debugging
As the API is not really public, it changes sometimes, and the module also needs some adjustments.
Contribution
Release procedure:
source .venv/bin/activate
make inst
make bumpver
make release
make publish
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toutsurmoneau-0.0.27.tar.gz.
File metadata
- Download URL: toutsurmoneau-0.0.27.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6be29e701331bb256cb0a38e124068f7b7264fdd52990add162fd1d03155d967
|
|
| MD5 |
ffb386dfaf3008bf43116b16e320f072
|
|
| BLAKE2b-256 |
778de0cbf1b2aa7b020080811ebbae6370c2bc17f184509bf8de750fc159b9f3
|
File details
Details for the file toutsurmoneau-0.0.27-py3-none-any.whl.
File metadata
- Download URL: toutsurmoneau-0.0.27-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af6ac1647fa4b13e656f11512f026d2ba05db7e9cc3bd95f50f6903e54e0d40e
|
|
| MD5 |
558aba7698da0b545daf98184c94229d
|
|
| BLAKE2b-256 |
dfb93c39554ff4ca4263bccb53356c0bf26288efde560b66a73d94338620ed21
|