slough
Experimental toy library to dry-run Python code — traces every variable value line-by-line through execution.
Usage
# Text output with variable annotations
slough path/to/solution.py -t test_cases.json
# Generate a turtle animation of the trace
slough path/to/solution.py -t test_cases.json -a animation.py
python animation.py
How it works
Hooks sys.settrace before calling your solution function, recording locals at each line. Outputs source code with live variable annotations and pass/fail for each test case.
Install
uv tool install slough
Status: Experimental. Not intended for production use.
Release files for slough 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slough-0.2.1.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slough-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / slough-0.2.1.tar.gz
| Download URL | slough-0.2.1.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f3d320639770372535ead3533035be036b6a7e1abba085eb0e79190a34f84b0
|
|
BLAKE2b-256 checksum How to use checksums |
a314a9d964c0f20875d4edab4497c103f0af27ac67247e88c7c57858724c8fae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / slough-0.2.1-py3-none-any.whl
| Download URL | slough-0.2.1-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa137d1d2337fcc4c970ee688aaf52f18f2aa52c0bf10190837fa83eae6da71c
|
|
BLAKE2b-256 checksum How to use checksums |
27624717634289a300b8d78c8d54a67de0119c3f100c3ee20a1a9b80fda8aa0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|