Skip to content
/ polib Public

Pure python library to manipulate, create, modify gettext files (pot, po and mo files).

License

Notifications You must be signed in to change notification settings

izimobil/polib

Repository files navigation

polib

Pypi version Pypi downloads Travis build codecov-image Documentation Status Python versions

Overview

polib is a library to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po files from scratch.

polib supports out of the box any version of python ranging from 2.7 to latest 3.X version.

polib is pretty stable now and is used by many opensource projects.

The project code and bugtracker is hosted on Github.

polib is generously documented, you can browse the documentation online, a good start is to read the quickstart guide.

Installation

Just use pip:

$ pip install polib

Basic example

import polib

pofile = polib.pofile('/path/to/pofile.po')

for entry in pofile:
    print(entry.msgid, entry.msgstr)

About

Pure python library to manipulate, create, modify gettext files (pot, po and mo files).

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages