Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyudev

https://secure.travis-ci.org/pyudev/pyudev.png?branch=develop

http://pyudev.readthedocs.org

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 3 and compatible versions of PyPy. 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

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'))
...
boot
swap
system

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

Support

Please report issues and questions 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.

Development

The source code is hosted on GitHub:

git clone git://github.com/pyudev/pyudev.git

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

Metadata

Release files for pyudev 0.23.0.dev20220122

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyudev 0.23.0.dev20220122
File Size Uploaded Provenance
pyudev-0.23.0.dev20220122.tar.gz 87.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyudev 0.23.0.dev20220122
File Interpreter ABI Platform
pyudev-0.23.0.dev20220122-py3-none-any.whl Python 3 none any Details

Total release size: 151.5 kB

Release files / pyudev-0.23.0.dev20220122.tar.gz

Download URL pyudev-0.23.0.dev20220122.tar.gz
Size 87.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c728166f31dfc317dc3d5b32374871b50ccb661437aba12ab3fc508c77e916ce
BLAKE2b-256 checksum
How to use checksums
b4477e1b9cc70f44ff60bab388cc6b9c0adb76a23276bff6292f5470ba9e27ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release files / pyudev-0.23.0.dev20220122-py3-none-any.whl

Download URL pyudev-0.23.0.dev20220122-py3-none-any.whl
Size 64.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50c87a8b90be7bc2888ee2d8a5bb7acfa78e18063ed46adadb590da8ce6d8a71
BLAKE2b-256 checksum
How to use checksums
32a6899794f36109a21adf7a28fbc4ccb258399db0d8b68f03fdc0690031816f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Security for pyudev 0.23.0.dev20220122

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page