Skip to main content

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:

  • AsyncClient is an asynchronous client
  • Client is a legacy synchronous client, compatible with module pySuez

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


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.27.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toutsurmoneau-0.0.27-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

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

Hashes for toutsurmoneau-0.0.27.tar.gz
Algorithm Hash digest
SHA256 6be29e701331bb256cb0a38e124068f7b7264fdd52990add162fd1d03155d967
MD5 ffb386dfaf3008bf43116b16e320f072
BLAKE2b-256 778de0cbf1b2aa7b020080811ebbae6370c2bc17f184509bf8de750fc159b9f3

See more details on using hashes here.

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

Hashes for toutsurmoneau-0.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 af6ac1647fa4b13e656f11512f026d2ba05db7e9cc3bd95f50f6903e54e0d40e
MD5 558aba7698da0b545daf98184c94229d
BLAKE2b-256 dfb93c39554ff4ca4263bccb53356c0bf26288efde560b66a73d94338620ed21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page