Aioarp is a ARP protocol implementation that provides synchronous and asynchronous interfaces and gives you complete control over how ARP packets are sent.
Project description
aioarp
Table of Contents
Installation
pip install aioarp
Documentation
How to send ARP requests
Sync
import aioarp
response = aioarp.request('10.0.2.2', 'enp0s3')
print(response.sender_mac)
# ee:xx:aa:mm:pp:le mac address
Async [trio or asyncio]
import trio
import aioarp
response = trio.run(aioarp.arequest, '10.0.2.2', 'enp0s3')
import asyncio
import aioarp
response = asyncio.run(aioarp.arequest('10.0.2.2', 'enp0s3'))
Or without specifying an interface parameter
response = aioarp.request('10.0.2.2')
License
aioarp
is distributed under the terms of the MIT license.
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
aioarp-0.0.10.tar.gz
(13.7 kB
view hashes)
Built Distribution
aioarp-0.0.10-py3-none-any.whl
(12.6 kB
view hashes)