Skip to main content

Find and properly reindent .po files.

Project description

powrap

pypi build

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

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!

Dependencies

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

apt install gettext

Contributing

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 ..

Dependencies

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 setup.py  # generates requirements.txt
pip-compile requirements-dev.in  # 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.

Source Distribution

powrap-1.0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

powrap-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file powrap-1.0.2.tar.gz.

File metadata

  • Download URL: powrap-1.0.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for powrap-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4f6465dec20f24ab830e694d92bc69291bbde925e4715e42df8e5033b12e83e4
MD5 1b5287b960811073450c80ec7b0c3b61
BLAKE2b-256 c0faef1bdecdf1df61c6c4b56509c1c231ade78d43d0f2a49ab8ee276ddbbe48

See more details on using hashes here.

File details

Details for the file powrap-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: powrap-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for powrap-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39a925a36e62cea98a0772014f97eb216dbca11dcc4199f45c813ef8524ece65
MD5 d42312ce0a7010a0302fa71e9355c0c6
BLAKE2b-256 ad42ec7aa281b7b8a4b0b40f9de7ce31bbe4450e00a0b6752b1a2eab28c8ea98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page