Skip to main content

A Python client for retrieving hourly meter data from Thames Water

Project description

Thames-Water

Thames water API client, login with:

from thameswaterclient import ThamesWater

email = 'myname@provider.com'
password = '**********'
account_number = 123456789

thames_water = ThamesWater(email=email, password=password, account_number=account_number)

You can then retrieve your hourly data and convert it into a pandas seriess

from thameswaterclient import meter_usage_lines_to_timeseries

meter = 311738552
start = datetime.date(2024, 10, 1)
end = datetime.date(2024, 12, 31)

meter_usage = thames_water.get_meter_usage(meter, start, end)
s_readings = meter_usage_lines_to_timeseries(start, end, meter_usage.Lines)

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

thameswaterclient-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

thameswaterclient-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0

File hashes

Hashes for thameswaterclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce8b8306e339383c365fc991ad73724cd1a4385018aa3ba7dbc7133f7c0d7d16
MD5 771f692091d6bb375a525d511c997f96
BLAKE2b-256 181fcd5af11079d7a1cf5bb5da9136fcaa3d6edc295c42d95ef5890937204fe4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0

File hashes

Hashes for thameswaterclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4880325326644c2af93ee28ad633e3a5a47cb210a44436fb0b835229783f293
MD5 711f8d691647df026bd55e9f413dd42d
BLAKE2b-256 fd304dd3cb8658a1b558210616f1b2c8c1f3086a9abcca4de2895630b40a5cba

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