Skip to main content

Python client for L'eau d'Ile-de-France (SEDIF) water consumption data

Project description

pyeauidf

Python client for L'eau d'Île-de-France (SEDIF) water consumption data.

Fetches daily, weekly, or monthly water consumption history directly via the Salesforce Aura API — no browser or Selenium required.

Installation

pip install .

Requires Python 3.10+ and requests.

Usage

CLI

# Last 7 days (default)
pyeauidf -u email@example.com -p password

# Custom number of days
pyeauidf -u email@example.com -p password --days 30

# Weekly aggregation
pyeauidf -u email@example.com -p password --days 90 --step weekly

# Credentials via environment variables
export EAUIDF_USERNAME=email@example.com
export EAUIDF_PASSWORD=password
pyeauidf

Python

from pyeauidf import EauIDFClient
from pyeauidf.client import TimeStep
from datetime import date, timedelta

with EauIDFClient("email@example.com", "password") as client:
    client.login()

    # Daily consumption (last 90 days by default)
    records = client.get_daily_consumption()
    for r in records:
        print(f"{r.date:%Y-%m-%d}: {r.consumption_liters:.0f}L")

    # Weekly or monthly
    records = client.get_daily_consumption(time_step=TimeStep.WEEKLY)

    # Custom date range
    records = client.get_daily_consumption(
        start_date=date(2026, 1, 1),
        end_date=date(2026, 3, 1),
    )

Data model

Each ConsumptionRecord contains:

Field Type Description
date datetime Timestamp of the reading
consumption_liters float Water consumed (liters)
meter_reading float Cumulative meter reading (m³)
is_estimated bool Whether the value is estimated

How it works

The library authenticates against the Salesforce Experience Cloud portal that powers L'eau d'Île-de-France, then calls the same Aura API endpoints that the website uses:

  1. Login via LightningLoginFormController
  2. Follow frontdoor.jsp to establish session cookies
  3. Call Apex actions (LTN015_ICL_ContratConsoHisto.getData) for consumption data

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

pyeauidf-0.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

pyeauidf-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file pyeauidf-0.1.0.tar.gz.

File metadata

  • Download URL: pyeauidf-0.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyeauidf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dceaa973b9b192d04c8012f4cab6eeeaf98ba0496339232c0dbf3656732818d6
MD5 da54028ddc84efac7b79ff36d6c3fc51
BLAKE2b-256 a7c68ced32d9e75d31e60f448780e58ee81fc5b752d190174f0a3f111d6fdc1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyeauidf-0.1.0.tar.gz:

Publisher: publish.yml on TimoPtr/pyeauidf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyeauidf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyeauidf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyeauidf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce78766c57464ec6a97db2791fd176bce6d05a53f2225f1b7be14760fa7bd697
MD5 a14cdff8f48a93f7091a8c05e04b9863
BLAKE2b-256 bca9ed3ec1bda3ee5eb668cee10dca3e91012550567c0aa749e7b0998b888965

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyeauidf-0.1.0-py3-none-any.whl:

Publisher: publish.yml on TimoPtr/pyeauidf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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