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.2.tar.gz (353.3 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.2-cp313-cp313-manylinux_2_34_x86_64.whl (322.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: bubbleproc-1.0.2.tar.gz
  • Upload date:
  • Size: 353.3 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.2.tar.gz
Algorithm Hash digest
SHA256 74ff3d28832e9f603f0b29050455a900aeb7aa59461a67080a77a7c4aaf998f4
MD5 96a304e6509a71abcaee63225cd6edbd
BLAKE2b-256 af2f02a7918166b4aef7001e1bea41c66bf94fa2ca9d7d993ce0c969730be358

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bubbleproc-1.0.2-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 80c5920b5f20251d7469c6db94e8b396f7f98f855aa7a5d202c3e948a504f283
MD5 1482c4e6163ef299b17e63470d54d83a
BLAKE2b-256 962ee16b0bd15db761aa91687fba3f59809910cef99140655a152a6ae7fa3e51

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