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 = 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
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-1.0.2.tar.gz
(18.6 kB
view details)
Built Distribution
File details
Details for the file aiodhcpwatcher-1.0.2.tar.gz
.
File metadata
- Download URL: aiodhcpwatcher-1.0.2.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e5e6acbe34928eacaa85c5598aae0116ac13c5c796d7f44bc4859fe4903f570 |
|
MD5 | a9e7761d3cfcc7dc96b8ec31293cec34 |
|
BLAKE2b-256 | 399a275ad2abadde1950a2f949a5ad42aad3ffbef2436b25dcc56ee6fadc51d0 |
File details
Details for the file aiodhcpwatcher-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: aiodhcpwatcher-1.0.2-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b43b6dfaa8ccfcc55de0e6fd38ffbb0d44e3fe9c11cd355bf808cb66282dcff4 |
|
MD5 | f64d1dab9ecb0df28914a600ec43c6c9 |
|
BLAKE2b-256 | f2a0ae034058cf60ea571c76fc25bb4d3c03376482fe38c01902fb187e184706 |