Skip to main content

Python simple arp table reader

Project description

https://img.shields.io/travis/XayOn/python_arptable.svg https://img.shields.io/pypi/v/python_arptable.svg

Python simple arp table reader

Features

  • Export ARP Table on linux as a dictionary.

Usage

arp_table exports two main things:

  • ARPTABLE constant, as it was when the package was imported

  • get_arp_table() function, returning latest arp table.

>>> from arp_table import ARPTABLE
>>> print(ARPTABLE)

[{'Device': 'eth0',
  'Flags': '0x2',
  'HW address': '00:12:79:d2:b9:67',
  'HW type': '0x1',
  'IP address': '10.3.0.1',
  'Mask': '*'}]

>>> print(get_arp_table())

[{'Device': 'eth0',
  'Flags': '0x2',
  'HW address': '00:12:79:d2:b9:67',
  'HW type': '0x1',
  'IP address': '10.3.0.1',
  'Mask': '*'}]

Disclaimer

This is a small, simple yet quite useful library. I’ve seen a lot of posts of people struggling with arp-table reading in python.

With this library, you can just

pip install arp_table

and enjoy!

History

0.0.1 (2015-06-14)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_arptable-0.0.1.tar.gz (11.3 kB view details)

Uploaded Source

File details

Details for the file python_arptable-0.0.1.tar.gz.

File metadata

File hashes

Hashes for python_arptable-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e1ef42956e44f6265a1438f3acb5dbea77e11c940195591408b0e2f6bc0a088
MD5 401acbcd61fb6f463a7cabb36b64fa1d
BLAKE2b-256 fd6e5bcd94e01d0b5c94ffd92f5a29f145849078d8a8ad4d0d5adfc603cdc242

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page