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.1.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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8f52e90b501612353beb898c9e796657e527c1090734dd6dd4e0c10abd03622d
MD5 642941d6354c3e7dd48541df79400666
BLAKE2b-256 a235868791108cfc66ad022648e18fc57411d459dbe7bf2052df5cfbcd285191

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 151b976f4cb5ae25822ee6d34167392933347f331bdd95e6a7487863f473afb8
MD5 cac02892a6a84b22d4e27e7ee6c44780
BLAKE2b-256 4e22a3f98321c4c59d3429ca7e87fd0a97464b3aa68f27a33ec0ba0e61cbfaac

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