A specialized grep for po files.
Go to file
2021-03-01 15:17:36 +01:00
tests Bump requirements. 2021-03-01 15:17:36 +01:00
.gitignore Adding a .gitignore. 2020-04-02 15:44:16 +02:00
LICENSE LICENSE 2019-11-01 20:23:59 +01:00
pogrep.py Bump requirements. 2021-03-01 15:17:36 +01:00
pyproject.toml Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
README.md Added poutils section to README (#34) 2020-10-14 18:24:12 +02:00
requirements-dev.in Bump requirements. 2021-03-01 15:17:36 +01:00
requirements-dev.txt Bump requirements. 2021-03-01 15:17:36 +01:00
requirements.txt Bump requirements. 2021-03-01 15:17:36 +01:00
setup.cfg Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
setup.py Drop flit for a more classic install setup, introduce tox, pytest, pip-compile, ... 2020-06-14 19:23:57 +02:00
tox.ini Bump requirements. 2021-03-01 15:17:36 +01:00

pogrep

Searches for string in po files. popgrep supports various GNU grep options to ease its use.

Pogrep is part of poutils!

Poutils (.po utils) is a metapackage to easily install useful Python tools to use with po files and pogrep is a part of it! Go check out Poutils to discover the other tools!

Examples

Print usage: pogrep --help

Find how 'flavors' has already been translated: search recursively in the current directory, show the names of the matching files, excluding the venv directory which contains a virtual env:

pogrep --recursive --line-number --exclude-dir venv flavor

Search the word 'typo' in traductions, but not in sources:

pogrep --recursive --translation --no-source --word-regexp typo

Contributing

Please test your contribution using tox -p auto.