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

Uploaded Python 3

File details

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

File metadata

  • Download URL: evduty_api-1.0.2.tar.gz
  • Upload date:
  • Size: 9.0 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.2.tar.gz
Algorithm Hash digest
SHA256 e91e1da90d806cf75ede17fd4b1957c7f2a452358264c2fc32fac2509fae8d66
MD5 a5f54ace090d79e28f4331dd4a83ba17
BLAKE2b-256 de77234a4bf29167982aca6394f519c457ed746c7208d01aa247a9603b1eeba4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: evduty_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df89a4ac22c67d9d9209080da57f0fa4f665d905d65bf24c4d38590f08236602
MD5 5d5c4141bb9d5eff42425588b97e07be
BLAKE2b-256 079cbdbefa7f0d2e13d0132b34c324e5b7a096e45d6320c72860fe19c29538eb

See more details on using hashes here.

Provenance

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