bubbleproc
Bubblewrap sandboxing for Python - protect against accidental damage from AI coding tools.
It also supports monkey patching subprocess, to bubblewrap Popen, run, check_output, etc.
Installation
pip install bubbleproc
Requires bubblewrap to be installed:
# Ubuntu/Debian
sudo apt install bubblewrap
# Fedora
sudo dnf install bubblewrap
# Arch
sudo pacman -S bubblewrap
Quick Start
from bubbleproc import run, Sandbox
# Run a command with read-write access to your project
result = run("python script.py", rw=["~/myproject"])
# Run with network access (for API calls)
result = run("npm install", rw=["~/myproject"], network=True)
# Reusable sandbox configuration
sb = Sandbox(rw=["~/project"], network=True)
sb.run("make build")
sb.run("make test")
Features
- 🔒 Secrets blocked by default (SSH keys, AWS credentials, etc.)
- 🛡️ System paths are read-only
- 🌐 Network disabled by default
- 🔌 Drop-in subprocess.run() replacement
- 🐍 Pure Python fallback when Rust extension unavailable
See the main repository README for full documentation.
Metadata
Release files for bubbleproc 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bubbleproc-1.0.4.tar.gz | 26.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bubbleproc-1.0.4-cp313-cp313-manylinux_2_34_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 352.0 kB
Release files / bubbleproc-1.0.4.tar.gz
| Download URL | bubbleproc-1.0.4.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d3a054923f848ae08da6ab48b9f92afc8b5ef85f001b057c0004f9fbd6b570f
|
|
BLAKE2b-256 checksum How to use checksums |
42c20b9b8cd9e6633be78dfaad73d21cb076f27a8ca8ebf88c2c2aa0f64c5cf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / bubbleproc-1.0.4-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | bubbleproc-1.0.4-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 325.7 kB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
96e8cebe99ec51e40fdd7f9ab0e1ca6bdd30cae625461c68ab8c87dccefa4107
|
|
BLAKE2b-256 checksum How to use checksums |
7fbfff51bbff7e2e589216e0bb1898f2b2c901bea0b422451f4428c6abd84a35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for bubbleproc 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.