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-1.0.1.tar.gz (10.4 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-1.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evduty_api-1.0.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for evduty_api-1.0.1.tar.gz
Algorithm Hash digest
SHA256 10d1284db9e5e086a6d0163f75a2e1678323e568800ac4805fe6216516fe0cc0
MD5 8661fa8ed1f73b16017d1d6ea76b4f51
BLAKE2b-256 faa766560fdbb8339e5da1f362ea08f391a2fed03c2858bf266c85f26344c851

See more details on using hashes here.

Provenance

The following attestation bundles were made for evduty_api-1.0.1.tar.gz:

Publisher: publish.yml on happydev-ca/evduty-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: evduty_api-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for evduty_api-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e4f65f750a24149de0480f4cf8fa870ca2d146a1f4900bcb5d96528ba50dacd
MD5 dbf46b7438cea72759720311f7ac8151
BLAKE2b-256 626ad25bd0a1699ccb7a59c3c1ec7bd40a5d894b076c3a916d791242ccda29c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for evduty_api-1.0.1-py3-none-any.whl:

Publisher: publish.yml on happydev-ca/evduty-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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