Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slough-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slough-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for slough-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ddf8ffea9246737e4cd2129bfd2ff6347862059383851caecf46740e9fb4ea2
MD5 836a1856819e8060d93991c0b0c7558e
BLAKE2b-256 4d930235799375b83f14c080b8f767cb7f8413977a5a302b4a407d627b630fd8

See more details on using hashes here.

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

Hashes for slough-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d691d0d1120d8cf7cd2b1e74852e7498a8c927c653a65e6f6738e4c716a6293
MD5 dbf4bb5ada10c7c047487045721cee37
BLAKE2b-256 9edbcfc13fd55bf98b5b3209f37765f0cc5ff6ee862885fea1764bb612d09f8b

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