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
Metadata
Release files for lupaxa-sandbox 0.1.0
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 | Actions |
|---|---|---|---|---|
| lupaxa_sandbox-0.1.0.tar.gz | 45.5 kB | With provenance | Details for lupaxa_sandbox-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lupaxa_sandbox-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lupaxa_sandbox-0.1.0-py3-none-any.whl |
Total release size: 108.1 kB
Release files / lupaxa_sandbox-0.1.0.tar.gz
| Download URL | lupaxa_sandbox-0.1.0.tar.gz |
|---|---|
| Size | 45.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f780e22f9949bf7878398e38e7b17c25247c21b7e29becdc6b107aa0ef7389cd
|
|
BLAKE2b-256 checksum How to use checksums |
7d372b7c0a1c8e79ce7677d4e7d9671e84ddd2cfcf8e7ac4bce3021367c2473d
|
| 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 logRelease files / lupaxa_sandbox-0.1.0-py3-none-any.whl
| Download URL | lupaxa_sandbox-0.1.0-py3-none-any.whl |
|---|---|
| Size | 62.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c173a4b989669a86cbdb2211827499794aa71df8eb7ac0d4abc24cdd3f8e6c56
|
|
BLAKE2b-256 checksum How to use checksums |
15250e9902203ab256b5022792190a8349fa4d40afca1f8618b32d7a6f73a27b
|
| 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 logSecurity for lupaxa-sandbox 0.1.0
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.
Attestation for lupaxa_sandbox-0.1.0.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 logA 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.