mcp-pystub
JSON →Auto-detect stubbable packages for Python exe builds (PyInstaller/Nuitka) and generate minimal stub code to reduce executable size
Install
pip install mcp-pystub Tools · 5
- analyze Analyze import graph to auto-detect stubbable packages and output submodule stub hints for C-extension elimination
- graph Visualize import graph as nodes and edges
- check Deep analysis of a specific package's usage
- generate Generate minimal stub code for a package and output build instructions
- generate_submodule Generate submodule stubs to indirectly eliminate C-extension packages