skip to navigation
skip to content

kmod 0.9.1

Python binding for kmod

Python bindings for kmod/libkmod

kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases.

These tools are designed on top of libkmod, a library that is shipped with kmod. It can be found at:;a=summary

python-kmod is a Python wrapper module for libkmod, exposing common module operations: listing installed modules, modprobe, and rmmod. It is at:

Example (python invoked as root)

>>> import kmod
>>> km = kmod.Kmod()
>>> [(, m.size) for m in km.loaded()]
[(u'nfs', 407706),
 (u'nfs_acl', 12741)
 (u'virtio_blk', 17549)]
>>> km.modprobe("btrfs")
>>> km.rmmod("btrfs")


Ensure Python, Cython, and the kmod headers are installed and run:

$ python build
File Type Py Version Uploaded on Size
kmod-0.9.1.tar.gz (md5) Source 2013-04-01 20KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 59 downloads in the last week
  • 228 downloads in the last month
  • Author: Andy Grover
  • Provides kmod
  • Package Index Owner: agrover
  • DOAP record: kmod-0.9.1.xml