bdraco / aiodhcpwatcher

Watch for DHCP packets with asyncio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Watch for DHCP packets with asyncio

License:GNU General Public License v3.0


Languages

Language:Python 99.0%Language:JavaScript 1.0%