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.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygreppy-1.0.0.tar.gz
(13.0 kB
view details)
File details
Details for the file pygreppy-1.0.0.tar.gz.
File metadata
- Download URL: pygreppy-1.0.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f3e10c391be712f4f5ffaedc988b1453ef59acebb5b58a2226575c9e76cc415
|
|
| MD5 |
6499505f2b6c97b69e4641491969997d
|
|
| BLAKE2b-256 |
cc6a71167c028308f75971db6cd79b4df7ac6385aa48aeab5a6aa6ee8141caba
|