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
. - Getting and setting the max number of namespaces.
- Mount utilities using new file descriptor based API.
- Create bind mounts.
Documentation
Also see examples/
folder for code examples.
Requirements
- Python version 3.7 or higher
PyPI wheels
PyPI wheels are completely statically linked and do not depend on any library.
Available architectures: x86_64
, i686
, aarch64
, armv7l
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.1.0.tar.gz
(22.2 kB
view hashes)
Built Distributions
Close
Hashes for lxns-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffedadc2ca23666470794c75feaeb86fe19eaffee7924a6bd9f43b4f54c7cb33 |
|
MD5 | a5bdfdc7d1dab188a9007595649c4d5a |
|
BLAKE2b-256 | 5e79294545187d93789c83b3ee96beb38ed34ed9f8ec36993a9476bf43500538 |
Close
Hashes for lxns-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9320ab93b3170fb721a5416193ea74254e7e2263b13a59239a0f89e3516bbbf4 |
|
MD5 | 888186c7083f01017de0b357ce2584bd |
|
BLAKE2b-256 | 5929f851120c53136d287c338328d4e17b21fc1f093377ecbba62d4576444d98 |
Close
Hashes for lxns-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df127aa607d84754cfb9bb705c6efd89b14e890afee97f952d2b4c9fb99078bc |
|
MD5 | ab6159610ced269197e8ecb5ee847925 |
|
BLAKE2b-256 | 6885dfb65a19c947c2f91c8d2e412939fea6cb0e296fa7997d4dff847d802530 |
Close
Hashes for lxns-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4affaa3513d57aafaf234b79972e4f41fbb7a8e56ff24120c331f71282e7300 |
|
MD5 | 928c82d3bfae53f56b1e55a7bc447e8f |
|
BLAKE2b-256 | e059ffc4175420df4d8662eca1cf15825e4d447d3ac0fe8533529a4a888c2226 |