Install & Compatibility
Where this runs
tested against v0.1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Cap
✓ from pyprctl import Cap
✗ from pyprctl import prctl
CapState
✓ from pyprctl import CapState
FileCaps
✓ from pyprctl import FileCaps
Demonstrates basic usage: querying capability sets and checking support.
from pyprctl import prctl
from pyprctl.caps import Cap
# Get current capability sets
permitted = prctl.cap_get_pc()
effective = prctl.cap_get_ec()
print(permitted, effective)
# Check if a capability is supported
if Cap.CAP_NET_RAW.is_supported():
print("CAP_NET_RAW is supported")
Upgrade
Version history
0.1.3latest on PyPI · released Oct 26, 2021
Audit
Dependencies
No dependency data recorded yet.