Skip to main content

A Python client for retrieving hourly meter data from Thames Water

Project description

Thames-Water

pip install thameswaterclient

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 series

from thameswaterclient import meter_usage_lines_to_timeseries

meter = 123456789
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.4.tar.gz (3.8 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.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 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.4.tar.gz
Algorithm Hash digest
SHA256 c3edb62c4f626591fc3a2a512c227de03294e792b9ef16a51517502960a2227a
MD5 3ff9eaaaf3ebca039f88be4a582efb99
BLAKE2b-256 0242e1826fb258771fa15589f146efdc84ae7fd85230817b345832da163d47af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c17db0f441b35390e88675350d04aae58428c086e3bb5fc595cfa8b3eeb76ea6
MD5 63558773ab6f0f2420c6f91135a795b9
BLAKE2b-256 28517c95b4158f8cb0d99982ca0d1713ac3bc39111f2010c5b815ed1a3bc3ff8

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