Skip to main content

Library to communicate with EVduty REST api

Project description

Build, test and publish

evduty-api

Library to communicate with EVduty REST API.

Usage

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

make install
make test
make build

Release version

make release bump=patch|minor|major

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

evduty_api-0.2.3.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

evduty_api-0.2.3-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page