This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A class which sends an ARP Request to know if a host is online on local networks

Project Description

General

ArpRequest is a Python module designed to make an ARP gratuitous request to know if a host is online. It acts on OSI model’s level 2 unlike icmp echo (ping), so, you can use it without IP configuration, or to “ping” an host in other IP network. However, you can only use it on local networks.

Usage

>>> from arprequest import ArpRequest
>>> ar = ArpRequest('10.0.0.1', 'eth0')
>>> ar.request()
True
>>> ar2 = ArpRequest('10.0.0.123', 'eth0') # 10.0.0.123 doesen't exist
>>> ar2.request()
False

Changelog

0.3 :

  • You can now select type of ARP request. This is done with “arp_type” argument of ArpRequest class. You can use arprequest.ARP_GRATUITOUS to make an ARP Gratuitous request (what is currently done) or use arprequest.ARP_STANDARD to do a standard ARP request.

    This option was created to use this library with systems which are configured to block Arp Gratuitous.

Constraints

  • ArpRequest work only on unix or unix-like platforms because it uses unix signals.
  • ArpRequest work only as root, because it uses raw sockets.
  • Module is commented in french. I will translate comments in english, some day…
Release History

Release History

This version
History Node

0.3

History Node

0.2a

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
arprequest-0.3-py2.6.egg (6.0 kB) Copy SHA256 Checksum SHA256 2.6 Egg May 10, 2009
arprequest-0.3.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source May 10, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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