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.0.tar.gz (10.7 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.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evduty_api-0.3.0.tar.gz
  • Upload date:
  • Size: 10.7 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.0.tar.gz
Algorithm Hash digest
SHA256 f0bc01bad4c648bd0151b521f3dd33eb1b34d48e5579ee2fa5c91f9b1bb287a2
MD5 f8cf884dd1f1b0c2e7ea3d1b8b8daa68
BLAKE2b-256 9d188293b6d1cc94cd609949046e50822079f7982bd8131ba255e0e38188a7ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: evduty_api-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc470318f85e8ed0f1b87a70f180cffd417d0cdf90fddb0868d8cdf132eb7fe
MD5 017ae594d8710a3667a1d8bccca27eee
BLAKE2b-256 febfca5b93ce11aaf0fc1888f10de812a8916e64e7ceca39206d3f818ff5d58e

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