Name | kmodpy JSON |
Version |
0.1.13
JSON |
| download |
home_page | |
Summary | Python binding for kmod |
upload_time | 2019-02-11 13:03:42 |
maintainer | |
docs_url | None |
author | Chrysostomos Nanakos |
requires_python | |
license | GPL |
keywords |
kmod
libkmod
kmodpy
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
kmodpy
------
The libkmod2 is a library that provides an API for insertion, removal,
configuration and listing of kernel modules.
kmodpy is a Python ctypes wrapper module for libkmod, exposing common module
operations: listing of installed modules, modprobe, modinfo, show_depends and
rmmod.
Follows an example executed as root:
::
>>> import kmodpy
>>> km = kmodpy.Kmod()
>>> [m for m in km.list()]
[(u'nfs', 407706),
(u'nfs_acl', 12741)
...
(u'virtio_blk', 17549)]
>>> km.modprobe("loop", extra_options="max_loop=8")
>>> km.rmmod("loop")
>>> list(km.modinfo("loop"))
[('alias', 'char-major-10-237'), ('alias', 'block-major-7-*'),
('license', 'GPL'), ('parm', 'max_part:Maximum number of
partitions per loop device'), ('parmtype', 'max_part:int'),
('parm', 'max_loop:Maximum number of loop
devices'), ('parmtype', 'max_loop:int'), ('depends', ''),
('intree', 'Y'), ('vermagic', '3.12-1-amd64 SMP mod_unload
modversions '), ('alias', 'devname:loop-control')]
>>> list(km.show_depends("ext4"))
['mbcache', 'crc16', 'jbd2']
Raw data
{
"_id": null,
"home_page": "",
"name": "kmodpy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "kmod libkmod kmodpy",
"author": "Chrysostomos Nanakos",
"author_email": "chris@include.gr",
"download_url": "https://files.pythonhosted.org/packages/a5/6a/837ff0c8da94dfda3d60323377ed0b597de9c525483c2094b0e3f2240eae/kmodpy-0.1.13.tar.gz",
"platform": "posix",
"description": "kmodpy\n------\n\nThe libkmod2 is a library that provides an API for insertion, removal,\nconfiguration and listing of kernel modules.\n\nkmodpy is a Python ctypes wrapper module for libkmod, exposing common module\noperations: listing of installed modules, modprobe, modinfo, show_depends and\nrmmod.\n\nFollows an example executed as root:\n\n::\n\n >>> import kmodpy\n >>> km = kmodpy.Kmod()\n >>> [m for m in km.list()]\n [(u'nfs', 407706),\n (u'nfs_acl', 12741)\n ...\n (u'virtio_blk', 17549)]\n >>> km.modprobe(\"loop\", extra_options=\"max_loop=8\")\n >>> km.rmmod(\"loop\")\n >>> list(km.modinfo(\"loop\"))\n [('alias', 'char-major-10-237'), ('alias', 'block-major-7-*'),\n ('license', 'GPL'), ('parm', 'max_part:Maximum number of\n partitions per loop device'), ('parmtype', 'max_part:int'),\n ('parm', 'max_loop:Maximum number of loop\n devices'), ('parmtype', 'max_loop:int'), ('depends', ''),\n ('intree', 'Y'), ('vermagic', '3.12-1-amd64 SMP mod_unload\n modversions '), ('alias', 'devname:loop-control')]\n >>> list(km.show_depends(\"ext4\"))\n ['mbcache', 'crc16', 'jbd2']",
"bugtrack_url": null,
"license": "GPL",
"summary": "Python binding for kmod",
"version": "0.1.13",
"project_urls": null,
"split_keywords": [
"kmod",
"libkmod",
"kmodpy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a56a837ff0c8da94dfda3d60323377ed0b597de9c525483c2094b0e3f2240eae",
"md5": "e5fb0f74024501b1c10a7323e7b9ee46",
"sha256": "69b208c4b8120bf1ef800cafc4958bc48c08db72e8208b2fd4696c732529ee73"
},
"downloads": -1,
"filename": "kmodpy-0.1.13.tar.gz",
"has_sig": false,
"md5_digest": "e5fb0f74024501b1c10a7323e7b9ee46",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 20546,
"upload_time": "2019-02-11T13:03:42",
"upload_time_iso_8601": "2019-02-11T13:03:42.201777Z",
"url": "https://files.pythonhosted.org/packages/a5/6a/837ff0c8da94dfda3d60323377ed0b597de9c525483c2094b0e3f2240eae/kmodpy-0.1.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-02-11 13:03:42",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "kmodpy"
}