Python library to interact with Linux kernel namespaces.
Project description
Python-lxns
Python library to control Linux kernel namespaces
Implemented using C extension module.
Current features implemented:
- Linux namespaces class abstractions with automatic resource control.
- Opening existing namespaces using PIDs.
- Opening parent user namespaces. (usually unaccessible from
/proc
) - Switching to a namespace.
- Unsharing namespaces either from class method or function with boolean flags.
- Automatic file descriptor resource control using
with
.
Documentation
Requirements
Compiling source package
- Meson build system
- Python headers
- C compiler
- Linux kernel headers
License
Python-lxns is licensed under Mozilla Public License Version 2.0.
Examples in examples/
folder are licensed under MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lxns-0.0a2.tar.gz
(21.0 kB
view hashes)
Built Distribution
Close
Hashes for lxns-0.0a2-cp37-abi3-manylinux_2_17_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1695afeb94273bd6cab55f7d3a1e6b4e7954f5d950f48968b7d0bad39ef7a1b |
|
MD5 | 3a5e599dd3b7036f1ac1a783438e0be8 |
|
BLAKE2b-256 | 3da56f6fa48fa9c0a4dbbf848e004390e3ac4c13bdd0a0b9fee4b8956d273639 |