Bundled bubblewrap (bwrap) binary for use as a Python dependency on Linux.
Project description
bubblewrap-bin
A Python wheel that ships a prebuilt
bubblewrap (bwrap) executable
for Linux. Useful for projects that need an OS sandbox at runtime without
asking users to apt install bubblewrap first.
Install
pip install bubblewrap-bin
Prebuilt wheels are published for Linux on x86_64 and aarch64. Other
platforms can install the sdist but it does not include the binary.
Usage
import subprocess
from bubblewrap_bin import bwrap_path
subprocess.run([str(bwrap_path()), "--version"], check=True)
bwrap_path() returns the absolute path of the bundled bwrap executable.
It raises BubblewrapNotBundledError when no binary is packaged in the
installed distribution (typically when installed from sdist on an
unsupported platform).
Sandbox limitations
bwrap from this package still requires kernel/runtime support for
unprivileged user namespaces. On hosts that disable that support (some
hardened distros, locked-down Docker / Kubernetes environments) the binary
exists but namespace creation will fail with Operation not permitted.
That is a host policy issue and cannot be fixed by repackaging.
Versioning
The Python package version tracks the upstream bwrap version with a
package revision suffix (for example 0.11.0.post1). The exact upstream
version baked into a given wheel is recorded in VENDORED_BWRAP_VERSION at
the repository root.
License
The Python wrapper is released under LGPL-2.0-or-later to match the
upstream bubblewrap project. See LICENSE for the full text and
attribution.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bubblewrap_bin-0.1.1.tar.gz.
File metadata
- Download URL: bubblewrap_bin-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4359ee7dac5f5cb57889a232659eff107fe53f07aea745dc33534ac47af9899f
|
|
| MD5 |
fbd81d36fd9e7a0384e3effa4140f7d4
|
|
| BLAKE2b-256 |
a91ad8d64dd1bfaa52c757c9ac5ba976e82be5850bf8bae34514b8a2705cbfc6
|
File details
Details for the file bubblewrap_bin-0.1.1-py3-none-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: bubblewrap_bin-0.1.1-py3-none-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 57.3 kB
- Tags: Python 3, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9656beafaa9c8be82aa6e1f4fdd82b2db465e1f762f3417e32d2f2afadfea7b5
|
|
| MD5 |
fdfc70952e577d4a1c978a731756b181
|
|
| BLAKE2b-256 |
5fd38a7a70afca508bca13f27132312561cdcce6fd87b17a44899f409d284cab
|
File details
Details for the file bubblewrap_bin-0.1.1-py3-none-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: bubblewrap_bin-0.1.1-py3-none-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 58.2 kB
- Tags: Python 3, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8af696f21fd276e74463ee52adda42aaaa29d413ba18d59eaee85916f5d9558e
|
|
| MD5 |
240e2ae448e60c160cc3565a5821873e
|
|
| BLAKE2b-256 |
cc12af674a667af8068f392ed7736cdf421e932624404f3d26348eafaeb2ccb7
|