Metadata-Version: 2.1
Name: mykurve
Version: 0.0.3
Summary: Unofficial library to retrieve details of mykurve.com account
Home-page: https://ddb0515.github.io/mykurve
License: Apache-2.0
Author: Dario Budimir
Author-email: dario.budimir@gmail.com
Maintainer: Dario Budimir
Maintainer-email: dario.budimir@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: attr (>=0.3.2,<0.4.0)
Project-URL: Documentation, https://github.com/ddB0515/mykurve
Project-URL: Repository, https://github.com/ddB0515/mykurve
Description-Content-Type: text/markdown

# mykurve library

Unofficial async library to retrieve details of https://api.mykurve.com/ or https://www.mykurve.com/ account
This was done for personal project but feel free to use on your own risk 

Hope will be useful to someone and if there is any issues (what I think there is...) please open PR or issue will 
try to help/fix in mean time

## Note
- This will work only if you don't have 2FA enabled (2FA is still **NOT** supported)

### TODO:
- handle 2FA 

### How to use 

```python
import asyncio

from mykurve import MyKurveApi
from mykurve.data_classes import TimeRange

userName = "<your_account>"
password = "your_password"

async def main():
    api = MyKurveApi()

    token = await api.get_token(userName, password)
    print(token)

    account = await api.get_accounts(token.access_token)
    print(account)

    account_info = await api.get_account_info(token.access_token, account.accounts[0].accountNumber)
    print(account_info)

    dashboard = await api.get_dashboard(token.access_token, account.accounts[0].accountNumber)
    print(dashboard)

    dashboard = await api.get_consumption_graph(token.access_token, account.accounts[0].accountNumber, TimeRange.DAY, 0)
    print(dashboard)


if __name__ == "__main__":
    asyncio.run(main())
```

If you like what I'm doing please support me <br/>
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/ddb0515)
