Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
src/ | H | 30-Aug-2019 | - | 94 | 72 | |
LICENSE | H A D | 30-Aug-2019 | 6.4 KiB | 135 | 103 | |
MANIFEST.in | H A D | 30-Aug-2019 | 59 | 4 | 3 | |
PKG-INFO | H A D | 30-Aug-2019 | 2.7 KiB | 72 | 56 | |
README.rst | H A D | 30-Aug-2019 | 1.2 KiB | 45 | 30 | |
_dump.pl | H A D | 13-Aug-2015 | 253 | 11 | 6 | |
setup.cfg | H A D | 30-Aug-2019 | 102 | 11 | 7 | |
setup.py | H A D | 30-Aug-2019 | 1.7 KiB | 51 | 42 | |
test_unidecode.py | H A D | 13-Aug-2015 | 756 | 26 | 18 |
README.rst
1Text-Unidecode 2============== 3 4.. image:: https://travis-ci.org/kmike/text-unidecode.svg?branch=master 5 :target: https://travis-ci.org/kmike/text-unidecode 6 :alt: Build Status 7 8text-unidecode is the most basic port of the 9`Text::Unidecode <http://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm>`_ 10Perl library. 11 12There are other Python ports of Text::Unidecode (unidecode_ 13and isounidecode_). unidecode_ is GPL; isounidecode_ uses too much memory, 14and it didn't support Python 3 when this package was created. 15 16You can redistribute it and/or modify this port under the terms of either: 17 18* `Artistic License`_, or 19* GPL or GPLv2+ 20 21If you're OK with GPL-only, use unidecode_ (it has better memory usage and 22better transliteration quality). 23 24``text-unidecode`` supports Python 2.7 and 3.4+. 25 26.. _unidecode: https://pypi.python.org/pypi/Unidecode/ 27.. _isounidecode: https://pypi.python.org/pypi/isounidecode/ 28.. _Artistic License: https://opensource.org/licenses/Artistic-Perl-1.0 29 30Installation 31------------ 32 33:: 34 35 pip install text-unidecode 36 37Usage 38----- 39 40:: 41 42 >>> from text_unidecode import unidecode 43 >>> unidecode(u'какой-то текст') 44 'kakoi-to tekst' 45