kmod/libkmod/python
Lucas De Marchi b35bf2a11c Fix include in python bindings
Prefix the include of libkmod in python bindings.
2015-01-02 13:11:39 -02:00
..
kmod Fix include in python bindings 2015-01-02 13:11:39 -02:00
.gitignore build-sys: add hooks to build python bindings 2014-03-26 22:30:56 -03:00
README python: Remove unused files from import 2014-03-26 22:30:49 -03:00

README

python-kmod
===========

Python bindings for kmod/libkmod

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.name, m.size) for m in km.loaded()]
  [(u'nfs', 407706),
   (u'nfs_acl', 12741)
   ...
   (u'virtio_blk', 17549)]
  >>> km.modprobe("btrfs")
  >>> km.rmmod("btrfs")