Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1007 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 1007 Bytes

TraceX

Trace variables and the operations on them using graphviz visualizations.

  • wrap the variables in Float() and perform operations
  • call draw() function on the variables just like print()

NOTE: PRs are currently not accepted for source code. If there are issues/problems, please create an issue.

Installation

Install using pip

pip install tracex

Usage

Integrating TraceX is a piece of cake. All you need is some variables.

Python API

from tracex import Float, draw

a = Float(2)
b = Float(-3)
c = a * b
d = c + Float(10)
e = Float(-2)
f = d * e

print(f)

draw(f)

Examples

NOTE: PRs are currently accepted for examples. If there are examples you've created, please create a PR.