Skip to main content

Bubblewrap sandboxing for Python

Project description

bubbleproc

Bubblewrap sandboxing for Python - protect against accidental damage from AI coding tools.

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.

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

bubbleproc-1.0.1.tar.gz (347.7 kB view details)

Uploaded Source

Built Distribution

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

bubbleproc-1.0.1-cp313-cp313-manylinux_2_34_x86_64.whl (321.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

File details

Details for the file bubbleproc-1.0.1.tar.gz.

File metadata

  • Download URL: bubbleproc-1.0.1.tar.gz
  • Upload date:
  • Size: 347.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for bubbleproc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5be723185a9baa3aad9981b8482fc78c05141755e396ae4cf247ef411f40a30d
MD5 c7d149f5aac1e0afcd8253c9bbd1324c
BLAKE2b-256 69d677cec5e0738716abe0faa9b91621328b9ee9a23f75e8d29c8e63ac0d613d

See more details on using hashes here.

File details

Details for the file bubbleproc-1.0.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for bubbleproc-1.0.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ea8f397dc0d4a372affc9e0cb9ca947d5eb8e473c70721f78b2514ff601681b1
MD5 f0a546c7edcc2c4fbb4c4b1fe5a43a73
BLAKE2b-256 57e2a53a81786283586537095fa41c7233b22c45385e6f2c1148cd9f5367174d

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