textproc/py-grep-ast 0.7.2 DragonFly
Pythonic grep through AST of source files
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- APACHE20
- Categories
- python, textproc
- Package size
- 21.1 KiB, 81.3 KiB installed
Description
Grep source code files and see matching lines with useful context that show how they fit into the code. See the loops, functions, methods, classes, etc that contain all the matching lines. Get a sense of what's inside a matched class or function definition. You see relevant code from every layer of the abstract syntax tree, above and below the matches.
By default, grep-AST recurses the current directory to search all source code files. It respects .gitignore, so it will usually "do the right thing" in most repos if you just do grep-ast <regex> without specifying any filenames.
You can also invoke grep-ast as gast for convenience.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | textproc/py-grep-ast | 0.7.2 |
| FreeBSD | textproc/py-grep-ast | 0.9.0 |
| GhostBSD | textproc/py-grep-ast | 0.9.0 |
Install
Binary package:
pkg install py311-grep-ast
From DPorts:
cd /usr/dports/textproc/py-grep-ast && make install clean
Dependencies
Run dependencies 3
No port depends on this one.