Ensure that uncomplye6 and black are installed. use conda, venv or just pip install to user..
pip install --user black uncompyle6
cd
mkdir decompiled_sources
# -r : recursively walk the input directory
# -o : output to this directory, default behavior is to output in place
uncompyle6 -ro ~/decompiled_sources /path/to/pyc_files
# Next run a code formatter, the output is already very clean so this is
# not strictly needed but it can improve readability.
black ~/decompiled_sources
- run sphynx on the result.