Skip to content

Trace variables and the operations on them using graphviz visualizations.

License

Notifications You must be signed in to change notification settings

rishiraj/tracex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Trace variables and the operations on them using graphviz visualizations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages