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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for evduty_api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 76952826dfc937c3075f299d397fbfb79270ed2975416838e42d9dd417fcc611
MD5 be4d464ada3bcbd6ea3b79488c8839b9
BLAKE2b-256 ff90cfd1842dbb5fa759430cdffe1490ed42ac2632f530d00d23516734402546

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for evduty_api-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1567dd2877a3510841581ac595560217a9cbe389e2e4bf93557861249db3a7de
MD5 2bdc89721069306f806d0ae4b314a2c3
BLAKE2b-256 05506630a208065fb0c0bdc767855f2da06c1ae9ab28a02b796f3072a6e0f308

See more details on using hashes here.

Provenance

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