Skip to main content

Developers Toolbox

Sandbox

Sandbox runs commands in a disposable copy of a project and shows what those commands changed. The original project stays in place.

Note: A workspace is a copied directory, not a security boundary. A command still runs with your user permissions.

The PyPI name is lupaxa-sandbox. The import path is lupaxa.sandbox. The console script is sandbox. lupaxa is a namespace package — there is no lupaxa/__init__.py.

Install

pip install lupaxa-sandbox

Python 3.11 or newer is required.

Run

sandbox run -- python -c "open('generated.txt', 'w').write('ok\n')"
sandbox list
sandbox diff run-name
sandbox logs run-name
sandbox destroy run-name

sandbox run copies the current directory, runs the command in that copy, and prints what was added, changed, or deleted. The copy is kept until you destroy the session. Put the command after -- so Sandbox does not treat it as its own options. Add --shell only when you want a shell to expand the command.

sandbox --help and sandbox --version print usage and the package version. --json prints a machine-readable report. A normal command failure returns that command's exit code. A timeout returns exit code 5.

Isolation

sandbox backend list
sandbox run --backend restricted --network deny -- python -c "open('out.txt', 'w').write('ok')"

The local backend is the default. It runs as you and does not restrict files, the network, or processes. restricted, docker, and podman are used only when a probe says they work. A limit the selected backend cannot enforce is refused. Sandbox does not switch to a weaker backend, and it does not pull container images.

Compare

sandbox compare sandbox.yml --python-a python3.11 --python-b python3.12
sandbox tui

sandbox compare stages the project once and runs that same snapshot in two sessions. The report lists exit codes, output, and files that differ. A difference is an observation. It does not mean the commands are incompatible. sandbox tui browses sessions, diffs, and export. Install it with pip install "lupaxa-sandbox[tui]". A normal install does not include it.

Recipes

sandbox validate sandbox.yml
sandbox run sandbox.yml
sandbox config show --resolved

A recipe lists commands as argument arrays and can create a virtual environment with an interpreter that is already installed. Sandbox does not download Python. The environment is not a security boundary. sandbox validate checks the file before it creates a workspace.

Keep Results

sandbox export experiment-1 --include "dist/**" --to ./output/
sandbox apply experiment-1 --all --dry-run
sandbox clean --dry-run
sandbox storage

Export copies the files you name. Apply writes changes back only when the original files still match the snapshot from session creation. A file you edited after that is left alone and reported as a conflict. Deletes need --delete. sandbox clean does not remove a session that is still running.

Samples

The repository has three ready-to-run projects under samples/. This is the smallest:

sandbox validate samples/hello/sandbox.yml
sandbox run samples/hello/sandbox.yml
sandbox diff hello
sandbox destroy hello

samples/report builds a file and checks it. samples/compare-notes runs one snapshot twice so you can compare the results.

Documentation

The guide lives in mkdocs/ and publishes to https://sandbox.thelupaxaproject.org/. It has install steps, session and recipe usage, a command reference, and a walkthrough of each sample with commands you can paste.

pip install -r requirements.txt
mkdocs serve

Development

make init
make python-install-dev
make python-check
The Lupaxa Project Footer

Metadata

Release files for lupaxa-sandbox 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lupaxa-sandbox 0.1.1
File Size Uploaded Provenance Actions
lupaxa_sandbox-0.1.1.tar.gz 45.8 kB With provenance Details for lupaxa_sandbox-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-sandbox 0.1.1
File Interpreter ABI Platform Actions
lupaxa_sandbox-0.1.1-py3-none-any.whl Python 3 none any Details for lupaxa_sandbox-0.1.1-py3-none-any.whl

Total release size: 108.8 kB

Release files / lupaxa_sandbox-0.1.1.tar.gz

Download URL lupaxa_sandbox-0.1.1.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1e480105c174a0d7d27595e339f52ee640dfe3fec5f00e4ff23cee63d9da5eaa
BLAKE2b-256 checksum
How to use checksums
7eb7a10a2187add4254bff3ea0583497a63bc3780997d89f85ce9f4e27d44443
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / lupaxa_sandbox-0.1.1-py3-none-any.whl

Download URL lupaxa_sandbox-0.1.1-py3-none-any.whl
Size 63.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c21f86f19f73f0b86c5b2ec04fbf09ffe0d2f44069ae8550c2872f1c558596a
BLAKE2b-256 checksum
How to use checksums
1b6ef59eb77693c0991cd8270d5527ea9bdeee09aca64b260e2dc836eddd053b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for lupaxa-sandbox 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lupaxa_sandbox-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page