今日已更新 446 条资讯 | 累计 22636 条内容
关于我们

whoimports: who still imports this Python module?

SybilGambleyyu 2026年07月22日 20:53 0 次阅读 来源:Dev.to

Before you rename, move, or delete a Python module: who still imports this? Grepping hits strings and comments. Importing the package can run side effects. whoimports walks the tree with the AST and prints every matching import / from … import line. Install pip install git+https://github.com/SybilGambleyyu/whoimports.git Usage whoimports src/auth/session.py whoimports auth.session -f json whoimports pkg.util -f md Notes Zero dependencies, Python 3.10+ File paths and dotted module names Understands src/ layouts text / markdown / JSON output Pairs with gitchurn and redactx for safe refactor context. Source: github.com/SybilGambleyyu/whoimports · MIT

本文内容来源于互联网,版权归原作者所有
查看原文