DESCRIPTION.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Text-Unidecode
  2. ==============
  3. .. image:: https://travis-ci.org/kmike/text-unidecode.svg?branch=master
  4. :target: https://travis-ci.org/kmike/text-unidecode
  5. :alt: Build Status
  6. text-unidecode is the most basic port of the
  7. `Text::Unidecode <http://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm>`_
  8. Perl library.
  9. There are other Python ports of Text::Unidecode (unidecode_
  10. and isounidecode_). unidecode_ is GPL; isounidecode_ uses too much memory,
  11. and it didn't support Python 3 when this package was created.
  12. This port is licensed under `Artistic License`_ and supports Python 2.7 and
  13. 3.3+. If you're OK with GPL, use unidecode_ (it has better memory usage and
  14. better transliteration quality).
  15. .. _unidecode: https://pypi.python.org/pypi/Unidecode/
  16. .. _isounidecode: https://pypi.python.org/pypi/isounidecode/
  17. .. _Artistic License: https://opensource.org/licenses/Artistic-Perl-1.0
  18. Installation
  19. ------------
  20. ::
  21. pip install text-unidecode
  22. Usage
  23. -----
  24. ::
  25. >>> from text_unidecode import unidecode
  26. >>> unidecode(u'какой-то текст')
  27. u'kakoi-to tekst'