Visualize Python code at lightning speed
Project description
Graphical Code Tracer (gct) is the world's first static code visualization tool.
Requires Python >= 3.7
Install command line tool: pip install gct-py
Running GCT is extremely simple!
python -m gct --input <path/to/file.py>
If you'd like to run gct as an executable, run it as an alias:
alias gct='python -m gct'
And then: gct -i <path/to/file.py>
Test example to make sure everything works:
python -m gct -i https://github.com/QasimWani/gct/blob/main/examples/arithmetics.py
Installing Graphviz
- Besides the pip package, graphviz (automatically installed when running
python -m gct, you need to have the dot executable which runs graphviz on the desktop. - Install graphviz (>= 6.0.1) : https://graphviz.org/download/#executable-packages
Incorrect dot version?
If your dot version is less than 6.0.1 (dot -v), you need to upgrade it. To do so:
- Find path of dot executable.
which dot(where dotfor Windows) - Remove dot file.
sudo rm <OUTPUT of (1)> - Reinstall graphviz: https://graphviz.org/download/#executable-packages
For any other issues, post an issue: https://github.com/QasimWani/gct/issues/new
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
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 gct-py-0.1.5.tar.gz.
File metadata
- Download URL: gct-py-0.1.5.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12c908f3db4918b7088ffa4f981524f0c4613d6597bc81d3043412d385c8cd74
|
|
| MD5 |
d781b78aed37f4d2f08c950aff9be97b
|
|
| BLAKE2b-256 |
796c299380307b6de2abfe75a2a6866b08a42698c6b31c3caf6ec9023011e1eb
|
File details
Details for the file gct_py-0.1.5-py3-none-any.whl.
File metadata
- Download URL: gct_py-0.1.5-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ed98050a8e24661f579a2a23eba6755b85e9b33209f9a1237243694e22d64eb
|
|
| MD5 |
cb9d47ea748a9ae74715ad5b2d6fdba5
|
|
| BLAKE2b-256 |
db9f24b850b363e1df05c68ac1688fc1e0fc15963daa826aae030a9ddac9a99e
|