polib


Namepolib JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/izimobil/polib/
SummaryA library to manipulate gettext files (po and mo files).
upload_time2021-03-26 22:22:55
maintainer
docs_urlNone
authorDavid Jean Louis
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            
=====
polib
=====

|build-status-image| |codecov-image| |documentation-status-image| |pypi-version| |py-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 <http://polib.readthedocs.org/en/latest/projects.html>`_.

The project code and bugtracker is hosted on 
`Github <https://github.com/izimobil/polib/>`_.

polib is generously documented, you can `browse the documentation online 
<http://polib.readthedocs.org/>`_, a good start is to read 
`the quickstart guide  <http://polib.readthedocs.org/en/latest/quickstart.html>`_.


Installation
~~~~~~~~~~~~

Just use ``pip``:

.. code:: bash

    $ pip install polib


Basic example
~~~~~~~~~~~~~

.. code:: python

    import polib

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

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


.. |build-status-image| image:: https://secure.travis-ci.org/izimobil/polib.svg?branch=master
   :target: http://travis-ci.org/izimobil/polib?branch=master
   :alt: Travis build

.. |codecov-image| image:: https://codecov.io/gh/izimobil/polib/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/izimobil/polib

.. |pypi-version| image:: https://img.shields.io/pypi/v/polib.svg
   :target: https://pypi.python.org/pypi/djangorestframework-datatables
   :alt: Pypi version

.. |documentation-status-image| image:: https://readthedocs.org/projects/polib/badge/?version=latest
   :target: http://polib.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. |py-versions| image:: https://img.shields.io/pypi/pyversions/polib.svg
   :target: https://img.shields.io/pypi/pyversions/polib.svg
   :alt: Python versions


=========
Changelog
=========

Version 1.1.1 (2021/03/26)
--------------------------
 - Strip UTF-16 BOM (U+FEFF) from start of file
 - Message context (msgctxt) support for MO files
 - Dropped Python < 2.7 support
 - Updated docs and README after switch from Bitbucket to Github

Version 1.1.0 (2017/11/27)
--------------------------
 - Fixed entries sorting when generating mo file (Fixes #78)
 - Fixed find method (Fixes #84)
 - Refactored POEntry.__cmp__ method (this should fix issues #60, #65 and #79)
 - Fixed duplicated entries when merging po file with pot file (fixes #68)
 - Fixed "None" string being outputted when polib deals with syntax error in string (Fixes issue #66)
 - Added a fuzzy property to entries (Fixes #76)
 - Take into account the message context when comparing entries
 - Leave occurence untouched if line number is not a number (fixes #80 and #90)
 - Fixed test for mo files that was failing because since gettext version 0.19.8.1, msgfmt skips the "POT-Creation-Date" metadata entry (Fixes #86)
 - Fixed major revision number comparison
 - Dropped python 2.4 support

Version 1.0.8 (2016/11/21)
--------------------------
 - Fixed issue #70 (occurrences parsing for windows pathes)
 - Fixed issue #71 (tcomment and flags not saved for obsolete entries)
 - Fixed issue #72 (wrong metadata ordering)
 - Fixed issue #73 (can't always unpickle POFile)
 - Use natural sorting for additional headers (metadata)
 - Fixed typos in various documents

Version 1.0.7 (2015/07/08)
--------------------------
 - Fixed bad parsing of indented msgstr_plural
 - Fixed ordering of "Language" metadata entry
 - Removed space after "#" in header if comment line is empty (like gettext tools)
 - Fixed typos / grammar errors (thanks Jakub Wilk)
 - Take into account msgid_plural if needed when comparing entries (thanks Leonardo Constantino Oliveira)
 - Fixed issue #63 (str() on a bytes instance when using python3) (thanks Jakub Wilk)

Version 1.0.6 (2015/01/04)
--------------------------
 - Wheel support
 - Add missing 'Language' and 'Plural-Forms' to metadata ordering
 - More accurate float operation for POFile.percent_translated()

Version 1.0.5 (2014/08/22)
--------------------------
 - Fixed issue #59: tokens variable referenced before assignment
 - Implemented feature request #56: line number information in PO entries
 - Fixed issue #61: polib does not handle previous msgid on multilines properly

Version 1.0.4 (2014/02/19)
--------------------------
 - Fixed issue #43: improved check that determine if polib is dealing with a filepath or unicode content
 - Fixed issue #44: polib now checks MO files revision number and throws an error if the number is unexpected
 - Fixed issue #45: parse properly mo files with no header entry
 - Fixed issue #47: added flags attribute for MOEntry to be consistent with POEntry
 - Fixed issue #49: use integers rather than strings for msgstr_plural keys
 - Fixed issue #51: if a PO file ends with a comment, polib adds a spurious empty entry at the end
 - Fixed issue #52: bad magic number written on big endian platforms
 - Fixed issue #53: added a __hash__() method to POEntry and MOEntry classes
 - Fixed issue #54: use lowercase for state identifiers. This fixes issues with certain locales and string.lower()
 - Fixed issue #58: use io.open() instead of codecs.open() because the latter doesn't handle very well universal line endings
 - Make sure the mo file is closed at garbage collection, this prevents warnings on unclosed file when running tests with python >= 3.2
 - Better way to test endianness
 - polib download URL is now on Pypi

Version 1.0.3 (2013/02/09)
--------------------------
 - Fixed issue #38: POFile.append() raised a duplicate exception when you tried to add a new entry with the same msgid and a different msgctxt (only when check_for_duplicates option is set to True)
 - Fixed issue #39: Added __init__.py file for convenience
 - Fixed issue #41: UnicodeDecodeError when running setup.py build on python3 with C locale
 - polib is now fully PEP8 compliant
 - Small improvements: remove unused "typ" var (thanks Rodrigo Silva), improved Makefile, Make sure _BaseFile.__contains__ returns a boolean value

Version 1.0.2 (2012/10/23)
--------------------------
 - allow empty comments, flags or occurrences lines

Version 1.0.1 (2012/09/11)
--------------------------
 - speed up POFile.merge method (thanks @encukou)
 - allow comments starting with two '#' characters (thanks @goibhniu)

Version 1.0.0 (2012/06/08)
--------------------------
Yeah... after nearly 6 years, polib reaches the stable state :)
Changes and fixes in this release :

 - polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk)
 - polib now can find the metadata entry no matter where it is located (thanks François Poirotte)
 - fixed issue #28 (IOError on reading obsolete "previous msgid" entries) (thanks James Ni)

Version 0.7.0 (2011/07/14)
--------------------------
This version adds support for python 3 (thanks to Vinay Sajip).
polib now supports out-of-the-box any version of python ranging from 2.4 to latest 3.X version.
polib is now 5 years old ;) so the 0.7.X branch will be the last before the 1.X stable branch.

Version 0.6.4 (2011/07/13)
--------------------------
 - Better api, autodetected_encoding is no longer required to explicitly set the encoding (fixes issue #23),
 - Fixed issue #24 Support indented PO files (thanks to François Poirotte).

Version 0.6.3 (2011/02/19)
--------------------------
 - Fixed issue #19 (Disappearing newline characters due to textwrap module),
 - ensure wrapping works as expected.

Version 0.6.2 (2011/02/09)
--------------------------
 - Backported textwrap.TextWrapper._wrap_chunks that has support for the drop_whitespace parameter added in Python 2.6 (Fixes #18: broken compatibility with python 2.5, thanks @jezdez).

Version 0.6.1 (2011/02/09)
--------------------------
 - fixed regression that prevented POFile initialization from data to work (issue #17).

Version 0.6.0 (2011/02/07)
--------------------------
 - polib is now `fully documented <http://polib.readthedocs.org>`_,
 - switched from doctests to unit tests to keep the polib.py file clean,
 - fixed issue #7 (wrapping issues, thanks @jezdez),
 - added a __eq__ method to _BaseFile (thanks @kost BebiX),
 - handle msgctxt correctly when compiling mo files,
 - compiled mo files are now exactly the same as those compiled by msgfmt without using hash tables.

Version 0.5.5 (2010/10/30)
--------------------------
 - Removed multiline handling code, it was a mess and was the source of potential bugs like issue #11,
 - Fixed typo in README and CHANGELOG, fixes issue #13.

Version 0.5.4 (2010/10/02)
--------------------------
 - fixed an issue with detect_encoding(), in some cases it could return an invalid charset.

Version 0.5.3 (2010/08/29)
--------------------------
 - correctly unescape lines containing both \\\\n and \\n (thanks to Martin Geisler),
 - fixed issue #6: __str__() methods are returning unicode instead of str,
 - fixed issue #8: POFile.merge error when an entry is obsolete in a .po, that this entry reappears in the .pot and that we merge the two,
 - added support to instantiate POFile objects using data instead of file path (thanks to Diego Búrigo Zacarão),
 - fixed issue #9: POFile.merge drop fuzzy attributes from translations (thanks to Tim Gerundt),
 - fixed issue #10: Finding entries with the same msgid and different context (msgctxt).

Version 0.5.2 (2010/06/09)
--------------------------
 - fixed issue #1: untranslated_entries() also show fuzzy message,
 - write back the fuzzy header if present in the pofile,
 - added support for previous msgctxt, previous msgid and previous msgid_plural comments (fixes issue #5),
 - better handling of lines wrapping.

Version 0.5.1 (2009/12/14)
--------------------------
 - fixed issue #0025: setup.py requires CHANGELOG but it's not present in polib-0.5.0-tar.gz

Version 0.5.0 (2009/12/13)
--------------------------
 - fixed issue #0017: UnicodeDecodeError while writing a mo-file,
 - fixed issue #0018: implemented support for msgctxt,
 - fixed bug when compiling plural msgids/strs,
 - API docs are no longer included, hopefully next release will ship with sphinx documentation,
 - parse msg plural entries correctly when reading mo files,
 - fixed issue #0020 and #0021: added ability to check for duplicate when adding entries to po/mo files, this is optional and not enabled by default because it slows down considerably the library,
 - fixed issue #0022: unescaping code is insufficient,
 - fixed issue #0023: encoding error when saving mo file as po file (thanks to sebastien.sable for the patch !).

Version 0.4.2 (2009/06/05)
--------------------------
 - fixed issue #0007: use the codecs module to open files,
 - fixed issue #0014: plural forms are not saved correctly in the mo file (thanks lorenzo.gil.sanchez for the patch),
 - fixed issue #0015: no LICENSE file included in tarball,  
 - removed Version/Date from README,
 - added test pot files to MANIFEST.in,
 - performance improvement in find() method (thanks Thomas !).

Version 0.4.1 (2009/03/04)
--------------------------
 - fixed issue #0006: plural msgstrs were saved unsorted,
 - fixed issue #0008: long comment lines broke 'save()' method,
 - removed performance shortcuts: they were in fact inefficient, I was mislead by the python profile module, kudos to Thomas for making me realise that,
 - fixed issue #0010: wrong polib version number,
 - fixed issue #0011: occurrences parsing is now more robust and can handle weird references formats (like in eToys OLPC po files),
 - fixed issue #0012: improved merge() method.

Version 0.4.0 (2008/11/26)
--------------------------
 - fixed bug #0005: percent_translated divide by 0 on empty po files,
 - fixed bug #0004: occurrences that have hyphens are wrapped when they should not,
 - changes in how encoding is handled,
 - remove deprecation warnings for typo on "occurrences",
 - added POEntry.__cmp__() method to sort entries like gettext does,
 - fixed POEntry.transalated(),
 - added a merge() method to POFile class, that behaves like the gettext msgmerge utility,
 - obsolete entries are now written at the end of the file and with only msgid/msgstr like gettext does,
 - fixed some bugs in mo files parsing,
 - renamed quote/unquote functions to escape/unescape,
 - various cosmetic changes.

Version 0.3.1 (2007/12/13)
--------------------------
 - fixed bug #0002: typo on "occurrences",
 - fixed bug #0003: mismatch in exception instance names,
 - removed deprecation warnings,
 - removed unused charset() method in POFile/MOFile objects,
 - fixed bug in multibytes string length (added regression tests),
 - fixed a bug in detect_encoding(),
 - added a find() method to _BaseFile class,
 - proper handling of quoting and unquoting,
 - proper handling of multiline strings in metadata 

Version 0.3.0 (2007/10/17)
--------------------------
 - speed improvements,
 - polib can now compile mo files,
 - unicode support,
 - fixed bug #0001: global name 'sorted' is not defined" on python 2.3.

Version 0.1.0 (2006-08-08)
--------------------------
Initial release



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/izimobil/polib/",
    "name": "polib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "David Jean Louis",
    "author_email": "izimobil@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/de/37/88ad2639cb4396755e87e97229d268bfa8bae0aeb6c7f9b01e9f49e10dff/polib-1.1.1.tar.gz",
    "platform": "posix",
    "description": "\n=====\npolib\n=====\n\n|build-status-image| |codecov-image| |documentation-status-image| |pypi-version| |py-versions|\n\nOverview\n--------\n\npolib is a library to manipulate, create, modify gettext files (pot, po and mo\nfiles). You can load existing files, iterate through it's entries, add, modify\nentries, comments or metadata, etc... or create new po files from scratch.\n\npolib supports out of the box any version of python ranging from 2.7 to latest\n3.X version.\n\npolib is pretty stable now and is used by many \n`opensource projects <http://polib.readthedocs.org/en/latest/projects.html>`_.\n\nThe project code and bugtracker is hosted on \n`Github <https://github.com/izimobil/polib/>`_.\n\npolib is generously documented, you can `browse the documentation online \n<http://polib.readthedocs.org/>`_, a good start is to read \n`the quickstart guide  <http://polib.readthedocs.org/en/latest/quickstart.html>`_.\n\n\nInstallation\n~~~~~~~~~~~~\n\nJust use ``pip``:\n\n.. code:: bash\n\n    $ pip install polib\n\n\nBasic example\n~~~~~~~~~~~~~\n\n.. code:: python\n\n    import polib\n\n    pofile = polib.pofile('/path/to/pofile.po')\n\n    for entry in pofile:\n        print(entry.msgid, entry.msgtxt)\n\n\n.. |build-status-image| image:: https://secure.travis-ci.org/izimobil/polib.svg?branch=master\n   :target: http://travis-ci.org/izimobil/polib?branch=master\n   :alt: Travis build\n\n.. |codecov-image| image:: https://codecov.io/gh/izimobil/polib/branch/master/graph/badge.svg\n  :target: https://codecov.io/gh/izimobil/polib\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/polib.svg\n   :target: https://pypi.python.org/pypi/djangorestframework-datatables\n   :alt: Pypi version\n\n.. |documentation-status-image| image:: https://readthedocs.org/projects/polib/badge/?version=latest\n   :target: http://polib.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. |py-versions| image:: https://img.shields.io/pypi/pyversions/polib.svg\n   :target: https://img.shields.io/pypi/pyversions/polib.svg\n   :alt: Python versions\n\n\n=========\nChangelog\n=========\n\nVersion 1.1.1 (2021/03/26)\n--------------------------\n - Strip UTF-16 BOM (U+FEFF) from start of file\n - Message context (msgctxt) support for MO files\n - Dropped Python < 2.7 support\n - Updated docs and README after switch from Bitbucket to Github\n\nVersion 1.1.0 (2017/11/27)\n--------------------------\n - Fixed entries sorting when generating mo file (Fixes #78)\n - Fixed find method (Fixes #84)\n - Refactored POEntry.__cmp__ method (this should fix issues #60, #65 and #79)\n - Fixed duplicated entries when merging po file with pot file (fixes #68)\n - Fixed \"None\" string being outputted when polib deals with syntax error in string (Fixes issue #66)\n - Added a fuzzy property to entries (Fixes #76)\n - Take into account the message context when comparing entries\n - Leave occurence untouched if line number is not a number (fixes #80 and #90)\n - Fixed test for mo files that was failing because since gettext version 0.19.8.1, msgfmt skips the \"POT-Creation-Date\" metadata entry (Fixes #86)\n - Fixed major revision number comparison\n - Dropped python 2.4 support\n\nVersion 1.0.8 (2016/11/21)\n--------------------------\n - Fixed issue #70 (occurrences parsing for windows pathes)\n - Fixed issue #71 (tcomment and flags not saved for obsolete entries)\n - Fixed issue #72 (wrong metadata ordering)\n - Fixed issue #73 (can't always unpickle POFile)\n - Use natural sorting for additional headers (metadata)\n - Fixed typos in various documents\n\nVersion 1.0.7 (2015/07/08)\n--------------------------\n - Fixed bad parsing of indented msgstr_plural\n - Fixed ordering of \"Language\" metadata entry\n - Removed space after \"#\" in header if comment line is empty (like gettext tools)\n - Fixed typos / grammar errors (thanks Jakub Wilk)\n - Take into account msgid_plural if needed when comparing entries (thanks Leonardo Constantino Oliveira)\n - Fixed issue #63 (str() on a bytes instance when using python3) (thanks Jakub Wilk)\n\nVersion 1.0.6 (2015/01/04)\n--------------------------\n - Wheel support\n - Add missing 'Language' and 'Plural-Forms' to metadata ordering\n - More accurate float operation for POFile.percent_translated()\n\nVersion 1.0.5 (2014/08/22)\n--------------------------\n - Fixed issue #59: tokens variable referenced before assignment\n - Implemented feature request #56: line number information in PO entries\n - Fixed issue #61: polib does not handle previous msgid on multilines properly\n\nVersion 1.0.4 (2014/02/19)\n--------------------------\n - Fixed issue #43: improved check that determine if polib is dealing with a filepath or unicode content\n - Fixed issue #44: polib now checks MO files revision number and throws an error if the number is unexpected\n - Fixed issue #45: parse properly mo files with no header entry\n - Fixed issue #47: added flags attribute for MOEntry to be consistent with POEntry\n - Fixed issue #49: use integers rather than strings for msgstr_plural keys\n - Fixed issue #51: if a PO file ends with a comment, polib adds a spurious empty entry at the end\n - Fixed issue #52: bad magic number written on big endian platforms\n - Fixed issue #53: added a __hash__() method to POEntry and MOEntry classes\n - Fixed issue #54: use lowercase for state identifiers. This fixes issues with certain locales and string.lower()\n - Fixed issue #58: use io.open() instead of codecs.open() because the latter doesn't handle very well universal line endings\n - Make sure the mo file is closed at garbage collection, this prevents warnings on unclosed file when running tests with python >= 3.2\n - Better way to test endianness\n - polib download URL is now on Pypi\n\nVersion 1.0.3 (2013/02/09)\n--------------------------\n - Fixed issue #38: POFile.append() raised a duplicate exception when you tried to add a new entry with the same msgid and a different msgctxt (only when check_for_duplicates option is set to True)\n - Fixed issue #39: Added __init__.py file for convenience\n - Fixed issue #41: UnicodeDecodeError when running setup.py build on python3 with C locale\n - polib is now fully PEP8 compliant\n - Small improvements: remove unused \"typ\" var (thanks Rodrigo Silva), improved Makefile, Make sure _BaseFile.__contains__ returns a boolean value\n\nVersion 1.0.2 (2012/10/23)\n--------------------------\n - allow empty comments, flags or occurrences lines\n\nVersion 1.0.1 (2012/09/11)\n--------------------------\n - speed up POFile.merge method (thanks @encukou)\n - allow comments starting with two '#' characters (thanks @goibhniu)\n\nVersion 1.0.0 (2012/06/08)\n--------------------------\nYeah... after nearly 6 years, polib reaches the stable state :)\nChanges and fixes in this release :\n\n - polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk)\n - polib now can find the metadata entry no matter where it is located (thanks Fran\u00e7ois Poirotte)\n - fixed issue #28 (IOError on reading obsolete \"previous msgid\" entries) (thanks James Ni)\n\nVersion 0.7.0 (2011/07/14)\n--------------------------\nThis version adds support for python 3 (thanks to Vinay Sajip).\npolib now supports out-of-the-box any version of python ranging from 2.4 to latest 3.X version.\npolib is now 5 years old ;) so the 0.7.X branch will be the last before the 1.X stable branch.\n\nVersion 0.6.4 (2011/07/13)\n--------------------------\n - Better api, autodetected_encoding is no longer required to explicitly set the encoding (fixes issue #23),\n - Fixed issue #24 Support indented PO files (thanks to Fran\u00e7ois Poirotte).\n\nVersion 0.6.3 (2011/02/19)\n--------------------------\n - Fixed issue #19 (Disappearing newline characters due to textwrap module),\n - ensure wrapping works as expected.\n\nVersion 0.6.2 (2011/02/09)\n--------------------------\n - Backported textwrap.TextWrapper._wrap_chunks that has support for the drop_whitespace parameter added in Python 2.6 (Fixes #18: broken compatibility with python 2.5, thanks @jezdez).\n\nVersion 0.6.1 (2011/02/09)\n--------------------------\n - fixed regression that prevented POFile initialization from data to work (issue #17).\n\nVersion 0.6.0 (2011/02/07)\n--------------------------\n - polib is now `fully documented <http://polib.readthedocs.org>`_,\n - switched from doctests to unit tests to keep the polib.py file clean,\n - fixed issue #7 (wrapping issues, thanks @jezdez),\n - added a __eq__ method to _BaseFile (thanks @kost BebiX),\n - handle msgctxt correctly when compiling mo files,\n - compiled mo files are now exactly the same as those compiled by msgfmt without using hash tables.\n\nVersion 0.5.5 (2010/10/30)\n--------------------------\n - Removed multiline handling code, it was a mess and was the source of potential bugs like issue #11,\n - Fixed typo in README and CHANGELOG, fixes issue #13.\n\nVersion 0.5.4 (2010/10/02)\n--------------------------\n - fixed an issue with detect_encoding(), in some cases it could return an invalid charset.\n\nVersion 0.5.3 (2010/08/29)\n--------------------------\n - correctly unescape lines containing both \\\\\\\\n and \\\\n (thanks to Martin Geisler),\n - fixed issue #6: __str__() methods are returning unicode instead of str,\n - fixed issue #8: POFile.merge error when an entry is obsolete in a .po, that this entry reappears in the .pot and that we merge the two,\n - added support to instantiate POFile objects using data instead of file path (thanks to Diego B\u00farigo Zacar\u00e3o),\n - fixed issue #9: POFile.merge drop fuzzy attributes from translations (thanks to Tim Gerundt),\n - fixed issue #10: Finding entries with the same msgid and different context (msgctxt).\n\nVersion 0.5.2 (2010/06/09)\n--------------------------\n - fixed issue #1: untranslated_entries() also show fuzzy message,\n - write back the fuzzy header if present in the pofile,\n - added support for previous msgctxt, previous msgid and previous msgid_plural comments (fixes issue #5),\n - better handling of lines wrapping.\n\nVersion 0.5.1 (2009/12/14)\n--------------------------\n - fixed issue #0025: setup.py requires CHANGELOG but it's not present in polib-0.5.0-tar.gz\n\nVersion 0.5.0 (2009/12/13)\n--------------------------\n - fixed issue #0017: UnicodeDecodeError while writing a mo-file,\n - fixed issue #0018: implemented support for msgctxt,\n - fixed bug when compiling plural msgids/strs,\n - API docs are no longer included, hopefully next release will ship with sphinx documentation,\n - parse msg plural entries correctly when reading mo files,\n - fixed issue #0020 and #0021: added ability to check for duplicate when adding entries to po/mo files, this is optional and not enabled by default because it slows down considerably the library,\n - fixed issue #0022: unescaping code is insufficient,\n - fixed issue #0023: encoding error when saving mo file as po file (thanks to sebastien.sable for the patch !).\n\nVersion 0.4.2 (2009/06/05)\n--------------------------\n - fixed issue #0007: use the codecs module to open files,\n - fixed issue #0014: plural forms are not saved correctly in the mo file (thanks lorenzo.gil.sanchez for the patch),\n - fixed issue #0015: no LICENSE file included in tarball,  \n - removed Version/Date from README,\n - added test pot files to MANIFEST.in,\n - performance improvement in find() method (thanks Thomas !).\n\nVersion 0.4.1 (2009/03/04)\n--------------------------\n - fixed issue #0006: plural msgstrs were saved unsorted,\n - fixed issue #0008: long comment lines broke 'save()' method,\n - removed performance shortcuts: they were in fact inefficient, I was mislead by the python profile module, kudos to Thomas for making me realise that,\n - fixed issue #0010: wrong polib version number,\n - fixed issue #0011: occurrences parsing is now more robust and can handle weird references formats (like in eToys OLPC po files),\n - fixed issue #0012: improved merge() method.\n\nVersion 0.4.0 (2008/11/26)\n--------------------------\n - fixed bug #0005: percent_translated divide by 0 on empty po files,\n - fixed bug #0004: occurrences that have hyphens are wrapped when they should not,\n - changes in how encoding is handled,\n - remove deprecation warnings for typo on \"occurrences\",\n - added POEntry.__cmp__() method to sort entries like gettext does,\n - fixed POEntry.transalated(),\n - added a merge() method to POFile class, that behaves like the gettext msgmerge utility,\n - obsolete entries are now written at the end of the file and with only msgid/msgstr like gettext does,\n - fixed some bugs in mo files parsing,\n - renamed quote/unquote functions to escape/unescape,\n - various cosmetic changes.\n\nVersion 0.3.1 (2007/12/13)\n--------------------------\n - fixed bug #0002: typo on \"occurrences\",\n - fixed bug #0003: mismatch in exception instance names,\n - removed deprecation warnings,\n - removed unused charset() method in POFile/MOFile objects,\n - fixed bug in multibytes string length (added regression tests),\n - fixed a bug in detect_encoding(),\n - added a find() method to _BaseFile class,\n - proper handling of quoting and unquoting,\n - proper handling of multiline strings in metadata \n\nVersion 0.3.0 (2007/10/17)\n--------------------------\n - speed improvements,\n - polib can now compile mo files,\n - unicode support,\n - fixed bug #0001: global name 'sorted' is not defined\" on python 2.3.\n\nVersion 0.1.0 (2006-08-08)\n--------------------------\nInitial release\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library to manipulate gettext files (po and mo files).",
    "version": "1.1.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9eee54d6c558d4319a26145658584acb373d50ba0968eb9c19fedfb42458314a",
                "md5": "e9559dfc55173c022ae16f17749e2c58",
                "sha256": "d3ee85e0c6788f789353416b1612c6c92d75fe6ccfac0029711974d6abd0f86d"
            },
            "downloads": -1,
            "filename": "polib-1.1.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e9559dfc55173c022ae16f17749e2c58",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 20183,
            "upload_time": "2021-03-26T22:22:57",
            "upload_time_iso_8601": "2021-03-26T22:22:57.134224Z",
            "url": "https://files.pythonhosted.org/packages/9e/ee/54d6c558d4319a26145658584acb373d50ba0968eb9c19fedfb42458314a/polib-1.1.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de3788ad2639cb4396755e87e97229d268bfa8bae0aeb6c7f9b01e9f49e10dff",
                "md5": "d6528d4711cb3eb4c7c5a61f2f3564a7",
                "sha256": "e02c355ae5e054912e3b0d16febc56510eff7e49d60bf22aecb463bd2f2a2dfa"
            },
            "downloads": -1,
            "filename": "polib-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d6528d4711cb3eb4c7c5a61f2f3564a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 154644,
            "upload_time": "2021-03-26T22:22:55",
            "upload_time_iso_8601": "2021-03-26T22:22:55.040730Z",
            "url": "https://files.pythonhosted.org/packages/de/37/88ad2639cb4396755e87e97229d268bfa8bae0aeb6c7f9b01e9f49e10dff/polib-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-03-26 22:22:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "izimobil",
    "github_project": "polib",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "tox": true,
    "lcname": "polib"
}
        
Elapsed time: 0.07533s