python源代码搜索工具
pygrepp的Python项目详细描述
用于在支持上下文的python源代码文件中搜索的工具 输出。
上下文搜索可用于astmoldule和 CensoredUsername的 ^由codegen的{a2} 阿明·罗纳彻。
要求:
- python 3.x
安装:
pip install pygreppy
用法:
pygreppy [-c <depth> | -cl | -f] (optional) pattern file file should be python script (better if formatted with pep8 guidelines) optional arguments: -h show this page -c [depth] show context of the string. -cl show class containing string (ignored if no class) -f show function containing string (ignored if no function) -re pattern is a regular expression Note: only one option can be specified at a time.