textproc/py-grep-ast 0.9.0 FreeBSD
Pythonic grep through AST of source files
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- APACHE20
- Categories
- textproc, python
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 |
|---|---|---|
| FreeBSD | textproc/py-grep-ast | 0.9.0 |
| DragonFly | textproc/py-grep-ast | 0.7.2 |
Install
Binary package:
pkg install py312-grep-ast
From the ports tree:
cd /usr/ports/textproc/py-grep-ast/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-grep-ast>0:textproc/py-grep-ast
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | - | - | 0.7.2 | - |
| FreeBSD:14:quarterly | - | - | n/a | 0.7.2 | - |
| FreeBSD:15:latest | - | - | n/a | 0.7.2 | 0.7.2 |
| FreeBSD:15:quarterly | - | - | n/a | n/a | n/a |
| FreeBSD:16:latest | - | - | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools
Runtime 2
${PYTHON_PKGNAMEPREFIX}pathspec>=0: devel/py-pathspec${PYTHON_PKGNAMEPREFIX}tree-sitter-languages>0: devel/py-tree-sitter-languages
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 10
No port depends on this one.
Configuration
Options name: textproc_grep-ast
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| grep_ast-0.9.0.tar.gz | 14125 | 620a242a4493e6721338d1c9a6c234ae651f8774f4924a6dcf90f6865d4b2ee3 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.