Announce: python-kmod 0.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all, I've implemented a very basic Python wrapper for libkmod.
libkmod & python-kmod should help eliminate Python modules calling
system("modprobe foo") to load modules. (It happens.)

Feedback and contributions welcome. LGPL2.1.

>From the README:

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

https://github.com/agrover/python-kmod

Example (python invoked as root)
--------------------------------

>>>import kmod

>>>km = kmod.Kmod()

>>>km.loaded_modules()

[('nfs', 407706),
 ('nfs_acl', 12741)

...

 ('virtio_blk', 17549)]

>>>km.modprobe("btrfs")

>>>km.rmmod("btrfs")

Building
--------

Ensure Python and kmod headers are installed and run:

python setup.py build


Regards -- Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux