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
Built Distributions
File details
Details for the file lxns-0.1.0.tar.gz
.
File metadata
- Download URL: lxns-0.1.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7913255a5e8146e9950ee8bcd60b25ac62c9ed289eecd3b394d2aa60e09003b2 |
|
MD5 | bb128ab500c152cd1315849ebf43cbd9 |
|
BLAKE2b-256 | efb9e9847504f519b60e0b60234036d03f5b5deaa12e33a8c3e1cde8b80b620e |
File details
Details for the file lxns-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: lxns-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 19.3 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffedadc2ca23666470794c75feaeb86fe19eaffee7924a6bd9f43b4f54c7cb33 |
|
MD5 | a5bdfdc7d1dab188a9007595649c4d5a |
|
BLAKE2b-256 | 5e79294545187d93789c83b3ee96beb38ed34ed9f8ec36993a9476bf43500538 |
File details
Details for the file lxns-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: lxns-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 18.2 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9320ab93b3170fb721a5416193ea74254e7e2263b13a59239a0f89e3516bbbf4 |
|
MD5 | 888186c7083f01017de0b357ce2584bd |
|
BLAKE2b-256 | 5929f851120c53136d287c338328d4e17b21fc1f093377ecbba62d4576444d98 |
File details
Details for the file lxns-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: lxns-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 17.0 kB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df127aa607d84754cfb9bb705c6efd89b14e890afee97f952d2b4c9fb99078bc |
|
MD5 | ab6159610ced269197e8ecb5ee847925 |
|
BLAKE2b-256 | 6885dfb65a19c947c2f91c8d2e412939fea6cb0e296fa7997d4dff847d802530 |
File details
Details for the file lxns-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: lxns-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 18.4 kB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4affaa3513d57aafaf234b79972e4f41fbb7a8e56ff24120c331f71282e7300 |
|
MD5 | 928c82d3bfae53f56b1e55a7bc447e8f |
|
BLAKE2b-256 | e059ffc4175420df4d8662eca1cf15825e4d447d3ac0fe8533529a4a888c2226 |