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

Uploaded Python 3

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 10f17f12b9d44ab91d5548ec6ad0c3a7ba4c801528412ae56837e29783de9252
MD5 43bed7f4f6238f4ec566eb01fa9b6d08
BLAKE2b-256 8323a991378a41ddda84a22f4144daa2d369eeb6a6f295a07d22686f4b74888b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca07527b9723af8c4527e36a6124492e7711a4c4b04260e9dc0338ad1511309f
MD5 03a0c6caff2561ded32595aab40465e1
BLAKE2b-256 fd32ffa76258c655345754a319d4a3676d01f84e6684b9a19cd1168d1603a483

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