| 1 |
Metadata-Version: 2.0 |
| 2 |
Name: text-unidecode |
| 3 |
Version: 1.3 |
| 4 |
Summary: The most basic Text::Unidecode port |
| 5 |
Home-page: https://github.com/kmike/text-unidecode/ |
| 6 |
Author: Mikhail Korobov |
| 7 |
Author-email: [email protected] |
| 8 |
License: Artistic License |
| 9 |
Platform: UNKNOWN |
| 10 |
Classifier: Development Status :: 5 - Production/Stable |
| 11 |
Classifier: Intended Audience :: Developers |
| 12 |
Classifier: License :: OSI Approved :: Artistic License |
| 13 |
Classifier: License :: OSI Approved :: GNU General Public License (GPL) |
| 14 |
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) |
| 15 |
Classifier: Programming Language :: Python |
| 16 |
Classifier: Programming Language :: Python :: 2 |
| 17 |
Classifier: Programming Language :: Python :: 2.7 |
| 18 |
Classifier: Programming Language :: Python :: 3 |
| 19 |
Classifier: Programming Language :: Python :: 3.4 |
| 20 |
Classifier: Programming Language :: Python :: 3.5 |
| 21 |
Classifier: Programming Language :: Python :: 3.6 |
| 22 |
Classifier: Programming Language :: Python :: 3.7 |
| 23 |
Classifier: Programming Language :: Python :: Implementation :: CPython |
| 24 |
Classifier: Programming Language :: Python :: Implementation :: PyPy |
| 25 |
Classifier: Topic :: Software Development :: Libraries :: Python Modules |
| 26 |
Classifier: Topic :: Text Processing :: Linguistic |
| 27 |
|
| 28 |
Text-Unidecode |
| 29 |
============== |
| 30 |
|
| 31 |
.. image:: https://travis-ci.org/kmike/text-unidecode.svg?branch=master |
| 32 |
:target: https://travis-ci.org/kmike/text-unidecode |
| 33 |
:alt: Build Status |
| 34 |
|
| 35 |
text-unidecode is the most basic port of the |
| 36 |
`Text::Unidecode <http://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm>`_ |
| 37 |
Perl library. |
| 38 |
|
| 39 |
There are other Python ports of Text::Unidecode (unidecode_ |
| 40 |
and isounidecode_). unidecode_ is GPL; isounidecode_ uses too much memory, |
| 41 |
and it didn't support Python 3 when this package was created. |
| 42 |
|
| 43 |
You can redistribute it and/or modify this port under the terms of either: |
| 44 |
|
| 45 |
* `Artistic License`_, or |
| 46 |
* GPL or GPLv2+ |
| 47 |
|
| 48 |
If you're OK with GPL-only, use unidecode_ (it has better memory usage and |
| 49 |
better transliteration quality). |
| 50 |
|
| 51 |
``text-unidecode`` supports Python 2.7 and 3.4+. |
| 52 |
|
| 53 |
.. _unidecode: https://pypi.python.org/pypi/Unidecode/ |
| 54 |
.. _isounidecode: https://pypi.python.org/pypi/isounidecode/ |
| 55 |
.. _Artistic License: https://opensource.org/licenses/Artistic-Perl-1.0 |
| 56 |
|
| 57 |
Installation |
| 58 |
------------ |
| 59 |
|
| 60 |
:: |
| 61 |
|
| 62 |
pip install text-unidecode |
| 63 |
|
| 64 |
Usage |
| 65 |
----- |
| 66 |
|
| 67 |
:: |
| 68 |
|
| 69 |
>>> from text_unidecode import unidecode |
| 70 |
>>> unidecode(u'какой-то текст') |
| 71 |
'kakoi-to tekst' |
| 72 |
|
| 73 |
|