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/bdraco/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.0.1.tar.gz (18.6 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.0.1-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiodhcpwatcher-1.0.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for aiodhcpwatcher-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9b9678ba38643675d4a27137d4f735e733593d3570b1ad8537514e317dd4f726
MD5 a9efe1682f8e342974df9b637dd271f9
BLAKE2b-256 ba352a1750ca6f66f57b6374bf9931956d40ca8ff5f041c485b8d5f11f6fb31e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiodhcpwatcher-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for aiodhcpwatcher-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0587a83fe36924e649afc507d1888e00c5efbb716e9b5cf815f188135dd0df39
MD5 27f5094d9d27ecfcf904dc96d348e0c0
BLAKE2b-256 1abfc318c7015dcf7567a086fd2ea1095acb2254f6b1397422e8bbb004c1160e

See more details on using hashes here.

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