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()
        print(stations)


asyncio.run(run())

Build and test locally

make venv
source .venv/bin/activate
make test
make build

Logging

Enable debug level to log API requests and responses.

import logging
logging.basicConfig(level=logging.DEBUG)

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.1.2.tar.gz (9.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.1.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evduty_api-1.1.2.tar.gz
Algorithm Hash digest
SHA256 19938948d1d22edaa26b83303daeaafed61892cb44ea44a85a22d2edd2641002
MD5 df5b82b4f19411ab01e2f0a1ddf5d730
BLAKE2b-256 3a6aa79207c1d8103417aedb8f369f961b1f2dc39041904c813178fa56fc50b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for evduty_api-1.1.2.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.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for evduty_api-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94c1306ec6f2aab88d96d72e1d1df137c21b1be51f1fdbae33c9467587ad087c
MD5 5a53b95498c4e974d9e3ad4c425058ed
BLAKE2b-256 bc5f90dc397bf0e4faad845cf30b279e3707d24a7eaa0a45d1cdacc0c3aa71da

See more details on using hashes here.

Provenance

The following attestation bundles were made for evduty_api-1.1.2-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