Skip to main content

A beautiful time-travel debugger for Python: track variable changes line-by-line.

Project description

# ChronosTrace 🚀

ChronosTrace is a tiny, beautiful "time-travel" debugger for Python.

Just add a decorator to any function to see a line-by-line breakdown of variable changes and execution time.

## Installation

pip install chronostrace

Usage

Python



from chronostrace import chronos



@chronos

def my\_function(n):

    total = 0

    for i in range(n):

        total += i

    return total



my\_function(3)

text





---



\### Step 3: Configure `pyproject.toml`

This is the most important part for PyPI. Open your `pyproject.toml` and update the `\[project]` section. It should look something like this:



```toml

\[project]

name = "chronostrace-pro"  # Or something unique to you

version = "0.1.0"

description = "A time-traveling state logger for Python functions"

authors = \[

    { name = "Your Name", email = "your@email.com" }

]

dependencies = \[

    "rich>=13.0.0",

]

readme = "README.md"

requires-python = ">=3.8"



\[build-system]

requires = \["setuptools>=61.0"]

build-backend = "setuptools.build\_meta"



\[tool.setuptools.packages.find]

where = \["src"]

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

chronostrace_python-0.2.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

chronostrace_python-0.2.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file chronostrace_python-0.2.1.tar.gz.

File metadata

  • Download URL: chronostrace_python-0.2.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for chronostrace_python-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4ab8caad14bc5739413aac57bfd0af5a4fe084214d110ba2302592630fd0232b
MD5 97ae1345b84ad15353db4474d63025bc
BLAKE2b-256 d4ce7b93a2b94f35dde16704799099af819f6e0af5cf774b645e3d582dc2fa8e

See more details on using hashes here.

File details

Details for the file chronostrace_python-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: chronostrace_python-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for chronostrace_python-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e134b5e840c87337250c1aa40634e432f43a6a94eae693ce1b2c83a1eca69f9a
MD5 0685e18dfcd4b322401e77568af3df9c
BLAKE2b-256 8729dc418eb6ff2607d93802703d451391d16dddb70e24232013453784fed2d0

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