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)), [])
Metadata
Release files for callviz 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| callviz-0.2.0.tar.gz | 5.7 kB | Without provenance | Details for callviz-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| callviz-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for callviz-0.2.0-py3-none-any.whl |
Total release size: 13.1 kB
Release files / callviz-0.2.0.tar.gz
| Download URL | callviz-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c477f5450b8a2035d5a0ae29a2e17af36b297d7c179c5245d9d56cac1fc83092
|
|
BLAKE2b-256 checksum How to use checksums |
f93c51d2c087294694f7d09fba0804671b19d905324bc3b7e68a1f6b9b6d6213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / callviz-0.2.0-py3-none-any.whl
| Download URL | callviz-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a2e685c06d8b7e310aac8547f8285e3f8325e950e578987882d40580ea3404b
|
|
BLAKE2b-256 checksum How to use checksums |
168587a43335e06eb843bec62ceffb43f5260e7066c366de0fceae09a7426fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for callviz 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.