Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bubblewrap_bin-0.11.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_x86_64.whl (57.3 kB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_aarch64.whl (58.2 kB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

File details

Details for the file bubblewrap_bin-0.11.0.tar.gz.

File metadata

  • Download URL: bubblewrap_bin-0.11.0.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

Hashes for bubblewrap_bin-0.11.0.tar.gz
Algorithm Hash digest
SHA256 c8e877a3dadc0397b71f43f76b03fa81dc4a80999c490b6b31c2577fbb6b4e83
MD5 062b32a3982dc7a654cbd207c29f0871
BLAKE2b-256 1a49f1a0d7183817fd423c1212f2070795d45d8a8568490bcaca8f0272005371

See more details on using hashes here.

File details

Details for the file bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: bubblewrap_bin-0.11.0-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

Hashes for bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 592c8c60b80e6f45c5f152ad1b93b6e10cd26f11057a96621e4928706be5d94f
MD5 c851950b8cf1b4707f5cf64552879eae
BLAKE2b-256 bc01e142d75984a2b691e40ff534fab39d6d4da7dc8ba53c25d0746eccd29d7e

See more details on using hashes here.

File details

Details for the file bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: bubblewrap_bin-0.11.0-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

Hashes for bubblewrap_bin-0.11.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e48a66717241522b2d08830f8cc3f877c944c7759d8f9301131ea63121d46813
MD5 536c196c6cc83a688621b04b94053bb8
BLAKE2b-256 afd9ed3f436811cc7053797bee1e739aa81cca30061bde5e244d651909e27a62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page