1 个仓库
Scanners that identify required third-party libraries by analyzing import statements.
Distinct from Python Packages: Focuses on discovering what is needed based on code, not the general management of Python packages
Explore 1 awesome GitHub repository matching development tools & productivity · Package Discovery Tools. Refine with filters or upvote what's useful.
pipreqs 是一个 Python 依赖生成和发现工具。它扫描项目导入以识别运行项目所需的第三方库,并自动生成仅包含源代码中实际使用包的 requirements 文件。 该实用程序通过比较已安装的包与实际导入来充当 requirements 文件管理器。它提供了修剪未使用的依赖项和审计项目以识别缺失或过时包的能力。 该工具采用静态分析和抽象语法树 (AST) 来隔离导入语句,而无需执行代码。它使用本地元数据或自定义服务器解析包版本,并递归遍历目录结构以定位所有相关的源文件。
Identifies specific third-party libraries required to run a project based on its import statements.