Registry / devops / python-arptable

python-arptable

JSON →
library0.0.2pypypi✓ verified 82d ago

Python simple arp table reader. Version 0.0.2, minimal maintenance.

pip install python-arptable
INSTALL
IMPORT
SIG · PYTHON-ARPTABLE
P
python-arptable
devopspythonv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_arp_table
from python_arptable import get_arp_table
from arptable import arptable
ARPTABLE
from python_arptable import ARPTABLE
csv
from python_arptable import csv

Read ARP table and print each entry (dict with keys: ip, mac, interface, type).

from arptable import arptable entries = arptable() for entry in entries: print(entry)
Debug
Known issues
gotchaThe library calls system command `arp -an` and parses output. It will fail on systems without arp or with non-English locale.
fix
Ensure arp command is available and locale is C.
affects: >=0.0.1
gotchaRoot privileges may be required to read the ARP table on some systems.
fix
Run script with sudo or appropriate capabilities.
affects: >=0.0.1
Upgrade
Version history
0.0.2latest on PyPI · released Apr 5, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
python-arptable — pip install python-arptable · libregistry