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.3.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evduty_api-0.3.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file evduty_api-0.3.1.tar.gz.

File metadata

  • Download URL: evduty_api-0.3.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for evduty_api-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0164b360938ebff817272cd1259bb38fd70c40cf5c550ec6e4de8426a430b921
MD5 d6098cc0feeb556509c42d99ede23444
BLAKE2b-256 edd12d56da25dd467d37bb8ee5d46d5aea56ae2df91d941bfd3c672b4d3ff349

See more details on using hashes here.

File details

Details for the file evduty_api-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: evduty_api-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for evduty_api-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f4359b83a6061d7cd604367e33e9f2e7b4fbdde5c1bc3b8c2a4f3d3a0055dc
MD5 95bc8df3b3559e772e98c112940b5cab
BLAKE2b-256 95f493a6bb40c15e80726d23de4727b7da075669337249aa08c6035a8c3dfa1a

See more details on using hashes here.

Supported by

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