Skip to main content

Watch for DHCP packets with asyncio

Project description

aiodhcpwatcher

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License


Documentation: https://aiodhcpwatcher.readthedocs.io

Source Code: https://github.com/bluetooth-devices/aiodhcpwatcher


Watch for DHCP packets with asyncio

Installation

Install this via pip (or your favourite package manager):

pip install aiodhcpwatcher

Usage

import asyncio
import aiodhcpwatcher

def _async_process_dhcp_request(response: aiodhcpwatcher.DHCPRequest) -> None:
    print(response)

async def run():
    cancel = await aiodhcpwatcher.async_start(_async_process_dhcp_request)
    await asyncio.Event().wait()

asyncio.run(run())

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

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

aiodhcpwatcher-1.2.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiodhcpwatcher-1.2.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file aiodhcpwatcher-1.2.3.tar.gz.

File metadata

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

File hashes

Hashes for aiodhcpwatcher-1.2.3.tar.gz
Algorithm Hash digest
SHA256 4f5dd2f05d79de5bc605f0d916fa9c92886639b05c36e32ea47eec3c7839e60d
MD5 8a2671f9d3d31458f1cdef1284626a68
BLAKE2b-256 66fb6d51d44ef4acd720e2afc9b76a6683516a94198a5bfa64fa6abf653ab30f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiodhcpwatcher-1.2.3.tar.gz:

Publisher: ci.yml on Bluetooth-Devices/aiodhcpwatcher

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

File details

Details for the file aiodhcpwatcher-1.2.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aiodhcpwatcher-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ac7430cb9af5d1b2b1e068248fbbace3256cff9bdc39d751002cda7e86a5b104
MD5 05b7e777714cc82dd5c896ec93b0cdd7
BLAKE2b-256 253fdf6117043f4d3acf0c6cf8402ab52bd7d795315ccd2a63dbb60823d3d186

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiodhcpwatcher-1.2.3-py3-none-any.whl:

Publisher: ci.yml on Bluetooth-Devices/aiodhcpwatcher

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