python-deps is a lightweight python module that computes the external imports of a python project. It does so statically, without importing or running any code from the module itself.
The command and tests should be run from a clean virtualenv python.
This uses the standard lib associated with whatever python installation used to run the module. A future version might support specifying a path to a python env directory, to decouple the choice of python used to execute the module vs. the python from which the names of stdlib modules are detected.
Note: this module is a work-in-progress.
pip install git+https://github.com/sourcegraph/python-deps
depdump.py path/to/project/root
git clone https://github.com/sourcegraph/python-deps.git
nosetests -s
Contributors
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。