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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Android Studio Java将输入存储在一个文本文件中,所有输入在一行中加载后显示在屏幕上   在我的Java应用程序中记录日志配置   java在将socket从Localhost构建到google时出错。通用域名格式   在java中通过SOAP发送附件   java Tomcat的JspWriter编码不正确   java应用程序在截击StringRequest时不断崩溃   java需要一个保持顺序并具有“顺序敏感”equals/hashCode的映射   Java框架地址栏元素   java如何从特定范围生成4个不重复的数字?   googleappenginejava。安全AccessControlException:拒绝访问(java.io.FilePermission)   加载游戏时java Fabric入口点异常崩溃   java Python我如何读入和读出,以便其他读者可以阅读它以便进一步购买?