BSD Ports

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

SystemPortVersion
FreeBSDtextproc/py-grep-ast0.9.0
DragonFlytextproc/py-grep-ast0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest---0.7.2-
FreeBSD:14:quarterly--n/a0.7.2-
FreeBSD:15:latest--n/a0.7.20.7.2
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest--n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 2

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

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
python shebangfix
Service scripts
none

Files

distinfo 1
FileSizeSHA256
grep_ast-0.9.0.tar.gz14125620a242a4493e6721338d1c9a6c234ae651f8774f4924a6dcf90f6865d4b2ee3
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.