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 = aiodhcpwatcher.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-0.7.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

aiodhcpwatcher-0.7.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiodhcpwatcher-0.7.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for aiodhcpwatcher-0.7.0.tar.gz
Algorithm Hash digest
SHA256 7b3c1dc2b3f1d1f3236547b917566633a598432fb9c295aee7ca5fd048ac3a20
MD5 4c6179dd3c2e35246fa091d5cb714a2a
BLAKE2b-256 b6edbaa70eb8a1be06e655a10d318c47f5e2d841a5d3b162bf1637ee0aea7d05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiodhcpwatcher-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for aiodhcpwatcher-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1bc15024fb641ee17d24f1fcf0dbabd57e6d828b0a27159f4037c72c56baf11
MD5 bf290b6c6194bcfbcbc3d144780aab88
BLAKE2b-256 de50f7a5c40dfef4b717e58665499068cae2689831668df13566f0dd722ec995

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