chiecthuyenngoaixa


Namechiecthuyenngoaixa JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/IoeCmcomc/chiecthuyenngoaixa
SummaryAn utility library for processing Vietnamese texts
upload_time2023-09-04 02:33:24
maintainer
docs_urlNone
authorIoeCmcomc
requires_python>=3.8,<4.0
licenseMIT
keywords vietnamese text
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # chiecthuyenngoaixa

[![GitHub issues](https://img.shields.io/github/issues/IoeCmcomc/chiecthuyenngoaixa)](https://github.com/IoeCmcomc/chiecthuyenngoaixa/issues)
[![GitHub license](https://img.shields.io/github/license/IoeCmcomc/chiecthuyenngoaixa)](https://github.com/IoeCmcomc/chiecthuyenngoaixa/blob/master/LICENSE)
[![Documentation Status](https://readthedocs.org/projects/chiecthuyenngoaixa/badge/?version=latest)](https://chiecthuyenngoaixa.readthedocs.io/en/latest/?badge=latest)
![PyPI](https://img.shields.io/pypi/v/chiecthuyenngoaixa)
![PyPI - Downloads](https://img.shields.io/pypi/dm/chiecthuyenngoaixa)

[Tiếng Việt](README-vi.md "Vietnamese version")

**chiecthuyenngoaixa** is a Python library which provides functions and
classes for various tasks in _processing Vietnamese texts_, such as
removing diacritics, converting numbers to words, sorting strings,
validations and more.

This library is written on pure Python with no dependencies. Python 3.8
and above is supported.

## Installation

Chiecthuyenngoaixa is available on
[PyPI](https://pypi.org/project/chiecthuyenngoaixa/). Open a terminal or
_Command Prompt_ (on Windows) and run the following command:

``` console
pip install chiecthuyenngoaixa
```

If you are using [Poetry](https://python-poetry.org/), use this instead:

``` console
poetry add chiecthuyenngoaixa
```

## Basic usage

The library will now be available as `ctnx` module (abbreviation of
_chiecthuyenngoaixa_).

Some commonly used functions and classes can be imported directly. For
example:

- To convert Vietnamese text to ASCII-only text:

```python
>>> from ctnx import remove_diacritics
>>> remove_diacritics("Đàn ong thấy cái lon thì bu vào.")
'Dan ong thay cai lon thi bu vao.'
```

- To convert a number to Vietnamese text:

```python
>>> from ctnx import num_to_words
>>> num_to_words(123456789021003.45)
'một trăm hai mươi ba nghìn bốn trăm năm mươi sáu tỉ bảy trăm tám mươi chín triệu không trăm hai mươi mốt nghìn không trăm linh ba phẩy bốn mươi lăm'
```

- To sort Vietnamese texts:

```python
>>> from ctnx import ViSortKey
>>> lines = ['Hà Nam', 'Hải Dương', 'Hà Nội', 'Hà Tĩnh', 'Hải Phòng', 'Hậu Giang', 'Hoà Bình', 'Hưng Yên', 'Hạ Long', 'Hà Giang', 'Điện Biên'\]
>>> sorted(lines, key=ViSortKey)
['Điện Biên', 'Hà Giang', 'Hà Nam', 'Hà Nội', 'Hà Tĩnh', 'Hải Dương', 'Hải Phòng', 'Hạ Long', 'Hậu Giang', 'Hoà Bình', 'Hưng Yên']
```

For further usages, see the documentation, which is hosted on [chiecthuyenngoaixa.readthedocs.io](https://chiecthuyenngoaixa.readthedocs.io/en/latest/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/IoeCmcomc/chiecthuyenngoaixa",
    "name": "chiecthuyenngoaixa",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "Vietnamese,text",
    "author": "IoeCmcomc",
    "author_email": "53734763+IoeCmcomc@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/3d/62/8a0fb4a28cf9cd36a0fe395fd14eeac532d50b8837f215e813075d6457ea/chiecthuyenngoaixa-0.2.0.tar.gz",
    "platform": null,
    "description": "# chiecthuyenngoaixa\n\n[![GitHub issues](https://img.shields.io/github/issues/IoeCmcomc/chiecthuyenngoaixa)](https://github.com/IoeCmcomc/chiecthuyenngoaixa/issues)\n[![GitHub license](https://img.shields.io/github/license/IoeCmcomc/chiecthuyenngoaixa)](https://github.com/IoeCmcomc/chiecthuyenngoaixa/blob/master/LICENSE)\n[![Documentation Status](https://readthedocs.org/projects/chiecthuyenngoaixa/badge/?version=latest)](https://chiecthuyenngoaixa.readthedocs.io/en/latest/?badge=latest)\n![PyPI](https://img.shields.io/pypi/v/chiecthuyenngoaixa)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/chiecthuyenngoaixa)\n\n[Ti\u1ebfng Vi\u1ec7t](README-vi.md \"Vietnamese version\")\n\n**chiecthuyenngoaixa** is a Python library which provides functions and\nclasses for various tasks in _processing Vietnamese texts_, such as\nremoving diacritics, converting numbers to words, sorting strings,\nvalidations and more.\n\nThis library is written on pure Python with no dependencies. Python 3.8\nand above is supported.\n\n## Installation\n\nChiecthuyenngoaixa is available on\n[PyPI](https://pypi.org/project/chiecthuyenngoaixa/). Open a terminal or\n_Command Prompt_ (on Windows) and run the following command:\n\n``` console\npip install chiecthuyenngoaixa\n```\n\nIf you are using [Poetry](https://python-poetry.org/), use this instead:\n\n``` console\npoetry add chiecthuyenngoaixa\n```\n\n## Basic usage\n\nThe library will now be available as `ctnx` module (abbreviation of\n_chiecthuyenngoaixa_).\n\nSome commonly used functions and classes can be imported directly. For\nexample:\n\n- To convert Vietnamese text to ASCII-only text:\n\n```python\n>>> from ctnx import remove_diacritics\n>>> remove_diacritics(\"\u0110\u00e0n ong th\u1ea5y c\u00e1i lon th\u00ec bu v\u00e0o.\")\n'Dan ong thay cai lon thi bu vao.'\n```\n\n- To convert a number to Vietnamese text:\n\n```python\n>>> from ctnx import num_to_words\n>>> num_to_words(123456789021003.45)\n'm\u1ed9t tr\u0103m hai m\u01b0\u01a1i ba ngh\u00ecn b\u1ed1n tr\u0103m n\u0103m m\u01b0\u01a1i s\u00e1u t\u1ec9 b\u1ea3y tr\u0103m t\u00e1m m\u01b0\u01a1i ch\u00edn tri\u1ec7u kh\u00f4ng tr\u0103m hai m\u01b0\u01a1i m\u1ed1t ngh\u00ecn kh\u00f4ng tr\u0103m linh ba ph\u1ea9y b\u1ed1n m\u01b0\u01a1i l\u0103m'\n```\n\n- To sort Vietnamese texts:\n\n```python\n>>> from ctnx import ViSortKey\n>>> lines = ['H\u00e0 Nam', 'H\u1ea3i D\u01b0\u01a1ng', 'H\u00e0 N\u1ed9i', 'H\u00e0 T\u0129nh', 'H\u1ea3i Ph\u00f2ng', 'H\u1eadu Giang', 'Ho\u00e0 B\u00ecnh', 'H\u01b0ng Y\u00ean', 'H\u1ea1 Long', 'H\u00e0 Giang', '\u0110i\u1ec7n Bi\u00ean'\\]\n>>> sorted(lines, key=ViSortKey)\n['\u0110i\u1ec7n Bi\u00ean', 'H\u00e0 Giang', 'H\u00e0 Nam', 'H\u00e0 N\u1ed9i', 'H\u00e0 T\u0129nh', 'H\u1ea3i D\u01b0\u01a1ng', 'H\u1ea3i Ph\u00f2ng', 'H\u1ea1 Long', 'H\u1eadu Giang', 'Ho\u00e0 B\u00ecnh', 'H\u01b0ng Y\u00ean']\n```\n\nFor further usages, see the documentation, which is hosted on [chiecthuyenngoaixa.readthedocs.io](https://chiecthuyenngoaixa.readthedocs.io/en/latest/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An utility library for processing Vietnamese texts",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/IoeCmcomc/chiecthuyenngoaixa",
        "Repository": "https://github.com/IoeCmcomc/chiecthuyenngoaixa"
    },
    "split_keywords": [
        "vietnamese",
        "text"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "09eac1a652c935c99b2cd6ff55805f99ba06c7f17969f8843c62202bbd0152fc",
                "md5": "76a06a06a582134333211fe1efdef7e5",
                "sha256": "3502e3562377b7735dddbe929ab035263b29b57203674e1d0f4f1c5d12dd510e"
            },
            "downloads": -1,
            "filename": "chiecthuyenngoaixa-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "76a06a06a582134333211fe1efdef7e5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 21654,
            "upload_time": "2023-09-04T02:33:22",
            "upload_time_iso_8601": "2023-09-04T02:33:22.858731Z",
            "url": "https://files.pythonhosted.org/packages/09/ea/c1a652c935c99b2cd6ff55805f99ba06c7f17969f8843c62202bbd0152fc/chiecthuyenngoaixa-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d628a0fb4a28cf9cd36a0fe395fd14eeac532d50b8837f215e813075d6457ea",
                "md5": "9621401de93656807e5f8467ddf7a37e",
                "sha256": "299f41a5f4291b5a351280249295ec5b867c8f42ec32d45f443baf4fe2b37439"
            },
            "downloads": -1,
            "filename": "chiecthuyenngoaixa-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9621401de93656807e5f8467ddf7a37e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 20423,
            "upload_time": "2023-09-04T02:33:24",
            "upload_time_iso_8601": "2023-09-04T02:33:24.507240Z",
            "url": "https://files.pythonhosted.org/packages/3d/62/8a0fb4a28cf9cd36a0fe395fd14eeac532d50b8837f215e813075d6457ea/chiecthuyenngoaixa-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-04 02:33:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "IoeCmcomc",
    "github_project": "chiecthuyenngoaixa",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "chiecthuyenngoaixa"
}
        
Elapsed time: 0.11898s