Skip to main content

Visualize Python code at lightning speed

Project description

Graphical Code Tracer

users license license

Graphical Code Tracer (gct) is the world's first visual static code analyzer.

Within seconds it can tell you how your functions and classes are connected to each other!

image

GCT web appGetting startedInstallationConfiguration

Getting started

Usecases:

  1. Onboard to new codebases faster.
  2. Debug code faster Twitter thread
  3. Create share-able versions of your code. Using gctpy.com, you can instantly share your UML diagrams across teams.

Some examples you can run GCT on:

Simple python filekarpathy/MinGPTscikit-learn/clustergeohot/tinygradPyTorch/autogradFlask Web App

Generate graph for any python file

python -m gct -i path/to/file.py # run gct on a local file
python -m gct -i https://github.com/user_name/path/to/file.py # run gct on a file hosted on a web server

Installation

Step 1: Install GCT Python package

pip install gct-py

Step 2: (Skip if already installed) Install Graphviz executable

GCT generates graphs using graphviz. To get accurate graphs, we highly recommend using latest graphviz version available for your OS.

If you've already installed graphviz executable version, check the dot version by running: dot -V.

Windows

Install graphviz by downloading executable (version >=6.0.1) from graphviz website.

MacOS

(Optional) more details: graphviz.

  brew install graphviz
Linux

(optional) more details: graphviz.

  sudo apt install graphviz

Configuration

Customize the experience by aliasing gct:

alias gct=python -m gct -i'
gct path/to/file.py

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

gct-py-0.1.6.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

gct_py-0.1.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file gct-py-0.1.6.tar.gz.

File metadata

  • Download URL: gct-py-0.1.6.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for gct-py-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8335234313137924e81797472d977e6b5717fd8c43fe0ad102dce97b613acbf3
MD5 49a634601b1499fbca623ad08e3e5192
BLAKE2b-256 3929337443e6eae48a0887694988d123b2fd03522f199028dc94f746e2d8681b

See more details on using hashes here.

File details

Details for the file gct_py-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: gct_py-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for gct_py-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 85bd64b7bf10e237ac31a65beb1c31eccfb096c477082274a7f9dcdfab0cdcf4
MD5 5f171332da7ace1d7dd1dfc73b9385e6
BLAKE2b-256 88aaa8025e2b36a7fb266e8eb791ce2491c9e673525c8e8d039c482f13387312

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