Metadata-Version: 2.3
Name: evduty-api
Version: 0.2.4
Summary: Library to communicate with EVduty REST api
Project-URL: Homepage, https://github.com/happydev-ca/evduty-api
Project-URL: Issues, https://github.com/happydev-ca/evduty-api/issues
Author-email: Francois Perron <fperron@gmail.com>
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Home Automation
Requires-Python: >=3.11
Requires-Dist: aiohttp
Description-Content-Type: text/markdown

[![Build, test and publish](https://github.com/happydev-ca/evduty-api/actions/workflows/publish.yml/badge.svg)](https://github.com/happydev-ca/evduty-api/actions/workflows/publish.yml)

# evduty-api

Library to communicate with EVduty REST API.

## Usage

```python
import aiohttp
import asyncio
import os

from evdutyapi import EVDutyApi


async def run():
    async with aiohttp.ClientSession() as session:
        api = EVDutyApi(os.environ['EMAIL'], os.environ['PASSWORD'], session)

        stations = await api.async_get_stations()

        for station in stations:
            print(station)
            for terminal in station.terminals:
                print(terminal)
                print(terminal.session)
                print(terminal.network_info)


asyncio.run(run())
```

### Build and test locally

```shell
make install
make test
make build
```

### Release version

```shell
make release bump=patch|minor|major
```