Skip to main content

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.

Metadata

Release files for bubblewrap-bin 0.11.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 bubblewrap-bin 0.11.0
File Size Uploaded
bubblewrap_bin-0.11.0.tar.gz 4.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for bubblewrap-bin 0.11.0
File Interpreter ABI Platform
bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details

Total release size: 120.2 kB

Release files / bubblewrap_bin-0.11.0.tar.gz

Download URL bubblewrap_bin-0.11.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e877a3dadc0397b71f43f76b03fa81dc4a80999c490b6b31c2577fbb6b4e83
BLAKE2b-256 checksum
How to use checksums
1a49f1a0d7183817fd423c1212f2070795d45d8a8568490bcaca8f0272005371
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_x86_64.whl

Download URL bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_x86_64.whl
Size 57.3 kB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
592c8c60b80e6f45c5f152ad1b93b6e10cd26f11057a96621e4928706be5d94f
BLAKE2b-256 checksum
How to use checksums
bc01e142d75984a2b691e40ff534fab39d6d4da7dc8ba53c25d0746eccd29d7e
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_aarch64.whl

Download URL bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_aarch64.whl
Size 58.2 kB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e48a66717241522b2d08830f8cc3f877c944c7759d8f9301131ea63121d46813
BLAKE2b-256 checksum
How to use checksums
afd9ed3f436811cc7053797bee1e739aa81cca30061bde5e244d651909e27a62
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.11.0 This release

3 release files

0.1.1

3 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