Skip to main content

Documentation Status PyPI - Version

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.

Metadata

Release files for lxns 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lxns 0.1.0
File Size Uploaded
lxns-0.1.0.tar.gz 22.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for lxns 0.1.0
File
lxns-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.7 abi3 Linux glibc 2.17+ ARMv7l Details
lxns-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details
lxns-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-64 Details
lxns-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-32 Details

Total release size: 95.1 kB

Release files / lxns-0.1.0.tar.gz

Download URL lxns-0.1.0.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7913255a5e8146e9950ee8bcd60b25ac62c9ed289eecd3b394d2aa60e09003b2
BLAKE2b-256 checksum
How to use checksums
efb9e9847504f519b60e0b60234036d03f5b5deaa12e33a8c3e1cde8b80b620e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / lxns-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL lxns-0.1.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 19.3 kB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
ffedadc2ca23666470794c75feaeb86fe19eaffee7924a6bd9f43b4f54c7cb33
BLAKE2b-256 checksum
How to use checksums
5e79294545187d93789c83b3ee96beb38ed34ed9f8ec36993a9476bf43500538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / lxns-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL lxns-0.1.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 18.2 kB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9320ab93b3170fb721a5416193ea74254e7e2263b13a59239a0f89e3516bbbf4
BLAKE2b-256 checksum
How to use checksums
5929f851120c53136d287c338328d4e17b21fc1f093377ecbba62d4576444d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / lxns-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL lxns-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 17.0 kB
Tags CPython 3.7 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
df127aa607d84754cfb9bb705c6efd89b14e890afee97f952d2b4c9fb99078bc
BLAKE2b-256 checksum
How to use checksums
6885dfb65a19c947c2f91c8d2e412939fea6cb0e296fa7997d4dff847d802530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / lxns-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl

Download URL lxns-0.1.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Size 18.4 kB
Tags CPython 3.7 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
b4affaa3513d57aafaf234b79972e4f41fbb7a8e56ff24120c331f71282e7300
BLAKE2b-256 checksum
How to use checksums
e059ffc4175420df4d8662eca1cf15825e4d447d3ac0fe8533529a4a888c2226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page