Skip to main content

Tool for searching in python source code

Project description

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

Context searching is available with ast moldule and CensoredUsername’s fork of codegen by Armin Ronacher.


  • 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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygreppy, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pygreppy-1.0.0.tar.gz (13.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page