Skip to main content

Find and properly reindent .po files.

Project description



Script to fix indentation of given .po files. If --modified is given, it will only fix modified files according to git (usefull if your .po files are versionned).

if --quiet is given, the progress bar will not be shown

Powrap is part of poutils!

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


powrap relies on msgcat from gettext so you’ll have to install gettext first, for example on Debian run:

apt install gettext


Start by creating a venv and pip install -r requirements-dev.txt in it.

To run the tests, use tox -p auto.

To install powrap in the current venv run pip install -e ..


We’re using pip-tools to pin our dependencies, but in the setup.cfg our dependencies are not pinned, the goal is to ensure powrap can easily be installed along with other tools.

Dependencies pinning is only done to have a reproducible development environment and corresponding env in the CI:

pip-compile  # generates requirements.txt
pip-compile  # generates requirements-dev.txt

It’s possible to upgrade pinned dependencies with the --upgrade flag of pip-compile.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for powrap, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size powrap-0.4.0-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size powrap-0.4.0.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page