semvec/pypi-packages huggingface dataset:
pygreppy 1.0.0
Tool for searching in python source code
License: BSD
Requires Python: >=3

pygreppy
========

Tool for searching in python source code files that supports context
output.

Context searching is available with ``ast`` moldule and
`CensoredUsername <https://github.com/CensoredUsername/>`__\ ’s
`fork <https://github.com/CensoredUsername/codegen>`__ of ``codegen`` by
Armin Ronacher.

Requirements:
-------------

-  Python 3.x
  
Installation: 
-------------
``pip install pygreppy``

Usage:
------

::

    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.