skip to navigation
skip to content

pyudev 0.16.1

A libudev binding

Package Documentation

Latest Version: 0.17

pyudev is a LGPL licensed, pure Python binding for libudev, the device and hardware management and information library for Linux. It supports almost all libudev functionality. You can enumerate devices, query device properties and attributes or monitor devices, including asynchronous monitoring with threads, or within the event loops of Qt, Glib or wxPython.

The binding supports CPython 2 (2.6 or newer) and 3 (3.1 or newer), and PyPy 1.5 or newer. It is tested against udev 151 or newer, earlier versions of udev as found on dated Linux systems may work, but are not officially supported.


Usage of pyudev is quite simply thanks to the power of the underlying udev library. Getting the labels of all partitions just takes a few lines:

>>> import pyudev
>>> context = pyudev.Context()
>>> for device in context.list_devices(subsystem='block', DEVTYPE='partition'):
...     print(device.get('ID_FS_LABEL', 'unlabeled partition'))

The website provides a detailed user guide and a complete API reference.


Please ask questions about pyudev on the mailing list at To join this list, send a mail to and reply to the confirmation email.

Please report issues to the issue tracker, but respect the following guidelines:

  • Check that the issue has not already been reported.
  • Check that the issue is not already fixed in the master branch.
  • Open issues with clear title and a detailed description in grammatically correct, complete sentences.
  • Include the Python version and the udev version (see udevadm --version) in the description of your issue.


The source code is hosted on GitHub:

git clone git://

Please fork the repository and send pull requests with your fixes or new features, but respect the following guidelines:

File Type Py Version Uploaded on Size
pyudev-0.16.1.tar.gz (md5) Source 2012-08-02 73KB
  • Downloads (All Versions):
  • 439 downloads in the last day
  • 2167 downloads in the last week
  • 8046 downloads in the last month