This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Python C extension to query the Kernel ARP cache for the MAC address of a given IP address.

Usage

The arpreq module exposes a single function arpreq, that will resolve a given IPv4 address into a MAC address.

An IP address can only be resolved to a MAC address if it is on the same subnet as your machine.

Let’s assume your current machine has the address 192.168.1.10 and another machine with the address 192.168.1.1 is on the same subnet:

>>> import arpreq
>>> arpreq.arpreq('192.168.1.1')
'00:11:22:33:44:55'

If a IP address can not be resolved to an MAC address, None is returned.

>>> arpreq.arpreq('8.8.8.8') is None
True

IP addresses may be also be specified as int or rich IP address data type of the common ipaddr, ipaddress, or netaddr modules.

>>> arpreq.arpreq(0x7F000001)
'00:00:00:00:00:00'
>>> import netaddr
>>> arpreq.arpreq(netaddr.IPAddress('127.0.0.1'))
'00:00:00:00:00:00'
>>> import ipaddr # on Python 2
>>> arpreq.arpreq(ipaddr.IPv4Address('127.0.0.1'))
'00:00:00:00:00:00'
>>> import ipaddress # on Python 3
>>> arpreq.arpreq(ipaddress.IPv4Address('127.0.0.1'))
'00:00:00:00:00:00'

Supported Platforms

This extension has only been tested on Linux, it should however work on any platform that supports the SIOCGARP ioctl, which is virtually every BSD, Linux and Mac OS.

Changelog

v0.3.1 (2016-07-06)

  • Don’t use private _PyErr_ChainExceptions (breaks on Debian Jessie)

v0.3.0 (2016-06-26)

  • Use PEP 489 multi-phase extension module initialization on Python 3.5+
  • Close socket if module initialization failed
  • Code cleanup

v0.2.1 (2016-06-26)

  • Fix memset overflow

v0.2.0 (2016-06-09)

  • Provide Python wheels
  • Support int and rich IP address objects as IP address arguments
  • Release the GIL during arpreq
  • Add units tests
  • Rework MAC string creation
  • Restructure module initialization

v0.1.0 (2015-11-28)

  • Initial release
Release History

Release History

0.3.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.3.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
arpreq-0.3.1-cp26-cp26m-manylinux1_i686.whl (19.3 kB) Copy SHA256 Checksum SHA256 cp26 Wheel Jul 6, 2016
arpreq-0.3.1-cp26-cp26m-manylinux1_x86_64.whl (19.7 kB) Copy SHA256 Checksum SHA256 cp26 Wheel Jul 6, 2016
arpreq-0.3.1-cp26-cp26mu-manylinux1_i686.whl (19.3 kB) Copy SHA256 Checksum SHA256 cp26 Wheel Jul 6, 2016
arpreq-0.3.1-cp26-cp26mu-manylinux1_x86_64.whl (19.7 kB) Copy SHA256 Checksum SHA256 cp26 Wheel Jul 6, 2016
arpreq-0.3.1-cp27-cp27m-manylinux1_i686.whl (19.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Jul 6, 2016
arpreq-0.3.1-cp27-cp27m-manylinux1_x86_64.whl (19.8 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Jul 6, 2016
arpreq-0.3.1-cp27-cp27mu-manylinux1_i686.whl (19.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Jul 6, 2016
arpreq-0.3.1-cp27-cp27mu-manylinux1_x86_64.whl (19.8 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Jul 6, 2016
arpreq-0.3.1-cp33-cp33m-manylinux1_i686.whl (21.2 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Jul 6, 2016
arpreq-0.3.1-cp33-cp33m-manylinux1_x86_64.whl (21.7 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Jul 6, 2016
arpreq-0.3.1-cp34-cp34m-manylinux1_i686.whl (21.6 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Jul 6, 2016
arpreq-0.3.1-cp34-cp34m-manylinux1_x86_64.whl (22.2 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Jul 6, 2016
arpreq-0.3.1-cp35-cp35m-manylinux1_i686.whl (21.8 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Jul 6, 2016
arpreq-0.3.1-cp35-cp35m-manylinux1_x86_64.whl (22.3 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Jul 6, 2016
arpreq-0.3.1.tar.gz (8.3 kB) Copy SHA256 Checksum SHA256 Source Jul 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting