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.5.tar.gz (4.0 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.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.5.tar.gz
  • Upload date:
  • Size: 4.0 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.5.tar.gz
Algorithm Hash digest
SHA256 b77b17716a7475293f94feb8dd077f319fa8e5c7555994e6adaa5d0519cd7c62
MD5 afce09c6407f0f1ebdecd604d058a0ef
BLAKE2b-256 868a89e4fef2ef7c929ae9b181ff12e75c9f29117acc876e19135628c426525a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thameswaterclient-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6c5b8aac5659e4beeaf48f63563b862147dcee3452c133aec558298e88f6157d
MD5 5a4c14f2408ccde9b7d2180dabd9992e
BLAKE2b-256 06b9f98efc028a96a1a7a79fc703503b6790fb524ebe9241a60445cac4316225

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