Visualize all functions and classes in a directory
Project description
Function Finder
Have a complex library? Want to either understand someone elses or make your library easier to understand?
What if you could generate a detailed graph of all the functions and classes in your package. Including links between common functions in multiple files. Now you can
External requirements
- This requires the graphviz library
What files are taken into account?
- .py
- .ipynb (Jupyter notebook)
How to use?
- cd to any directory you want
- Default outputs are in pdf
import functionfinder
functionfinder.runner()
- Change the format of the outputs
import functionfinder
functionfinder.runner(".", "svg")
- Run for another directory
import functionfinder
functionfinder.runner("path-to-dir", "svg")
Outputs
- Graph of all functions/classes and their related links
- Relationships between files
- functions.pdf (With all the functions)
- classes.pdf (With all the classes)
- Extension can be configured
- Saved in project dir
Outputs supported
- png
- svg
- jpg
- Others might work so just try
Examples
Check the repo for examples repo
FAQ
Not Working
- Have you installed graphviz?
- Do you have jupytext and graphviz installed
- Are you trying for python files?
Windows?
- I cant check the compatibility but it should work
Where are the outputs?
- Wherever you opened python from
- Or wherever you put the first argument from
Can I convert this to other languages?
- Yes please. Contributions are welcome
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
functionvis-0.1.4.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file functionvis-0.1.4.tar.gz
.
File metadata
- Download URL: functionvis-0.1.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31b88e34006efe08a758c6ed5baf29a929ef624568ea8515c6f18ab7d6e3bbba |
|
MD5 | 18973c9bf30f2f1fddb8084c15e03492 |
|
BLAKE2b-256 | 262f7716238614ace9013f24c235409d665c41cd8a9fa7de3484a7e690d3f526 |
File details
Details for the file functionvis-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: functionvis-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d1801d462b33e3230059edbee477f6571c08f6b38991f172aa12930d79b47e |
|
MD5 | f03f263aab1cdbc0c530b587d95e5f2f |
|
BLAKE2b-256 | a3f74d3eb5c5d789146cd719001e21fd71b5bc5d469e144d355f7926c68033b3 |