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.0.tar.gz (336.8 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.0-cp313-cp313-manylinux_2_34_x86_64.whl (318.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: bubbleproc-1.0.0.tar.gz
  • Upload date:
  • Size: 336.8 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.0.tar.gz
Algorithm Hash digest
SHA256 d4efcd32cb7daabcd98e7858491b6a4c316e5da48c353402e207562da5ec5c77
MD5 46935db1afd020890cf1b348acb21463
BLAKE2b-256 3d2c919500d65fc39c8bf47b03dc3b813965a1f25ce6d8727d7bd799f28c8532

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bubbleproc-1.0.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3a841f5156524aa7429090feeb6aaf0a39fbeceb5603fcc25e2166129c7aff64
MD5 ce4fdbd3af627116a8b6b77066dea1b0
BLAKE2b-256 50c683fdf5b259ae748c06016d2f8163283fb1a1ae91638c1c0e2e7b040b0efc

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