Watch for DHCP packets with asyncio
Project description
aiodhcpwatcher
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
Release history Release notifications | RSS feed
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.6.0.tar.gz
(18.3 kB
view hashes)
Built Distribution
Close
Hashes for aiodhcpwatcher-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e0a7f5a93ef400a345701cc216595b26b88f98a35e15d10bf42a469a2305cd3 |
|
MD5 | f003f23b584cdce614cec9f860c8b328 |
|
BLAKE2b-256 | 51cbaa99204545df4857ba5000564f884471a436024ed558f7ae2fbf855762b4 |