Experimental toy library to dry-run Python code with line-by-line variable tracing
Project description
slough
Experimental toy library to dry-run Python code traces every variable value line-by-line through execution.
Usage
slough path/to/solution.py -t test_cases.json
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slough-0.1.0.tar.gz.
File metadata
- Download URL: slough-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.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":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ddf8ffea9246737e4cd2129bfd2ff6347862059383851caecf46740e9fb4ea2
|
|
| MD5 |
836a1856819e8060d93991c0b0c7558e
|
|
| BLAKE2b-256 |
4d930235799375b83f14c080b8f767cb7f8413977a5a302b4a407d627b630fd8
|
File details
Details for the file slough-0.1.0-py3-none-any.whl.
File metadata
- Download URL: slough-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.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":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d691d0d1120d8cf7cd2b1e74852e7498a8c927c653a65e6f6738e4c716a6293
|
|
| MD5 |
dbf4bb5ada10c7c047487045721cee37
|
|
| BLAKE2b-256 |
9edbcfc13fd55bf98b5b3209f37765f0cc5ff6ee862885fea1764bb612d09f8b
|