Recursive function calls visualization using Graphviz
Project description
Function call visualization
It is a Python decorator that will help you visualizate the function calls, in particular for the recursive ones. Under the hood Graphviz is used to generate the graph.
📖 Build and run
For the build, you only need the following requirements:
- Python 3+ (tested with 3.12.4)
To install it from PyPi, you can run the following command:
python -m pip install callviz
🤝 Contribute
If you want to help the project, you can follow the guidelines in CONTRIBUTING.md.
📎 Some examples
Here is an example of how you could use the decorator.
from callviz import callviz
@callviz(_format="png", memoization=True, open_file=True)
def fib(n: int):
if n < 2:
return n
return fib(n - 2) + fib(n - 1)
@callviz(show_link_value=False)
def rev(arr, new):
if arr == []:
return new
return rev(arr[1:], [arr[0]] + new)
fib(7)
rev(list(range(6, 0, -1)), [])
Project details
Release history Release notifications | RSS feed
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 callviz-0.2.0.tar.gz.
File metadata
- Download URL: callviz-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c477f5450b8a2035d5a0ae29a2e17af36b297d7c179c5245d9d56cac1fc83092
|
|
| MD5 |
16d73fb459b98d73fb1b2efbe312b1b7
|
|
| BLAKE2b-256 |
f93c51d2c087294694f7d09fba0804671b19d905324bc3b7e68a1f6b9b6d6213
|
File details
Details for the file callviz-0.2.0-py3-none-any.whl.
File metadata
- Download URL: callviz-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a2e685c06d8b7e310aac8547f8285e3f8325e950e578987882d40580ea3404b
|
|
| MD5 |
1bf7e215aa9928709d703a579d9c3bdc
|
|
| BLAKE2b-256 |
168587a43335e06eb843bec62ceffb43f5260e7066c366de0fceae09a7426fdd
|