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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thameswaterclient-0.1.3.tar.gz.
File metadata
- Download URL: thameswaterclient-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96a29527b9400f091f613de527ff1aec005eec10dc58552eac7e552700fd354f
|
|
| MD5 |
fe1641c80e6c489c731049351024e2dc
|
|
| BLAKE2b-256 |
9ae7d3692cbb2be33e7e54ed2554b056735a26c14ba068acdea661fb0495dc01
|
File details
Details for the file thameswaterclient-0.1.3-py3-none-any.whl.
File metadata
- Download URL: thameswaterclient-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bad311b14c504f4c4af6d53c542ca94589655f8f747409c8b18fc1aebd1c787
|
|
| MD5 |
85e73d091f4f76ccb93a61ca2825c52b
|
|
| BLAKE2b-256 |
4f75f3eb2963ebd1718046dfa800c8ab0a1fefe093322edc3fc5af6806f035cb
|