Metadata-Version: 2.1
Name: thameswaterclient
Version: 0.1.4
Summary: A Python client for retrieving hourly meter data from Thames Water
License: MIT
Author: Ayrton Bourn
Author-email: ayrtonbourn@outlook.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.31.0,<3.0.0)
Description-Content-Type: text/markdown

# Thames-Water

`pip install thameswaterclient`

Thames water API client, login with:

```python
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

```python
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)
```

