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.8.2.tar.gz
(18.5 kB
view details)
Built Distribution
File details
Details for the file aiodhcpwatcher-0.8.2.tar.gz
.
File metadata
- Download URL: aiodhcpwatcher-0.8.2.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a887f89ca7b802ba8cecdb3b2643f3a4794d05d9ba2a567582ab770184d0a5ad |
|
MD5 | d3f720866e9541b21c5733dee9e05794 |
|
BLAKE2b-256 | c5ad8ca5a2f05bff0f80803bd73dc4ea5636fd96cc15d08a8b3eb6553a9fefa8 |
File details
Details for the file aiodhcpwatcher-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: aiodhcpwatcher-0.8.2-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f6159a564a3fa6fa6c7bca707031a1439e4da7b1b03191bd23b5ac99e3031fc |
|
MD5 | cef439b1ad6e6bb3070cc59629e88fb1 |
|
BLAKE2b-256 | 0aa88bbc249780a382163aa9be2828063d6282c57dcffffda9b5f3cbd7656699 |