yubiconvert


Nameyubiconvert JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://github.com/Yubi2Community/yubiconvert
SummaryPython module that can convert numeric words to their numerical form effortlessly
upload_time2023-05-08 07:27:42
maintainer
docs_urlNone
authorYubi Data Science Team
requires_python
licenseMIT
keywords numbers convert words indian currency
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # YubiConvert

YubiConvert - a Python module that can convert numeric words to their numerical form effortlessly. What's more, it supports both Western and Indian currency standards, making it the ultimate solution for all your numerical conversion needs.

## Installation

To install the YubiConvert module, it is recommended to first ensure that you have updated the pip to the latest version. Then, you can use pip to install the module from the Python Package Index with the following command:

```python
pip install yubiconvert

```

## Usage

Once the module is installed, you can import it into your Python code using the following line:

```python
from yubiconvert import yubiconvert as w2n
```

Then you can use the **word_to_num** method to convert a number-word to numeric digits, as shown below.
```python
print(w2n.word_to_num("twenty lakh three thousand nineteen Rupees"))
2003019
```
```python
print(w2n.word_to_num('two point three')) 
2.3
```
```python
print(w2n.word_to_num('112')) 
112
```
```python
print(w2n.word_to_num('point one')) 
0.1
```
```python
print(w2n.word_to_num('one hundred thirty-five')) 
135
```
```python
print(w2n.word_to_num("there was a group of ten friends who went to the restaurant for a party, ordered thirty two dishes including ten drinks and bill came out as ten thousand five hundred and thirty paisa")) 
there was a group of 10 friends who went to the restaurant for a party, ordered 32 dishes including 10 drinks and bill came out as 10500.3
```
## Credits
This repo is a forked of [w2n](https://github.com/akshaynagpal/w2n) library and the same has been used as a base to extend it further to support indian currency standards.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Yubi2Community/yubiconvert",
    "name": "yubiconvert",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "numbers,convert,words,indian,currency",
    "author": "Yubi Data Science Team",
    "author_email": "data@go-yubi.com",
    "download_url": "https://files.pythonhosted.org/packages/bd/9d/e7cd1735e7c4e7c015961f2dcfa5bcc1bd45bedfb7d51521698c7d0377d0/yubiconvert-1.0.4.tar.gz",
    "platform": null,
    "description": "# YubiConvert\n\nYubiConvert - a Python module that can convert numeric words to their numerical form effortlessly. What's more, it supports both Western and Indian currency standards, making it the ultimate solution for all your numerical conversion needs.\n\n## Installation\n\nTo install the YubiConvert module, it is recommended to first ensure that you have updated the pip to the latest version. Then, you can use pip to install the module from the Python Package Index with the following command:\n\n```python\npip install yubiconvert\n\n```\n\n## Usage\n\nOnce the module is installed, you can import it into your Python code using the following line:\n\n```python\nfrom yubiconvert import yubiconvert as w2n\n```\n\nThen you can use the **word_to_num** method to convert a number-word to numeric digits, as shown below.\n```python\nprint(w2n.word_to_num(\"twenty lakh three thousand nineteen Rupees\"))\n2003019\n```\n```python\nprint(w2n.word_to_num('two point three')) \n2.3\n```\n```python\nprint(w2n.word_to_num('112')) \n112\n```\n```python\nprint(w2n.word_to_num('point one')) \n0.1\n```\n```python\nprint(w2n.word_to_num('one hundred thirty-five')) \n135\n```\n```python\nprint(w2n.word_to_num(\"there was a group of ten friends who went to the restaurant for a party, ordered thirty two dishes including ten drinks and bill came out as ten thousand five hundred and thirty paisa\")) \nthere was a group of 10 friends who went to the restaurant for a party, ordered 32 dishes including 10 drinks and bill came out as 10500.3\n```\n## Credits\nThis repo is a forked of [w2n](https://github.com/akshaynagpal/w2n) library and the same has been used as a base to extend it further to support indian currency standards.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python module that can convert numeric words to their numerical form effortlessly",
    "version": "1.0.4",
    "project_urls": {
        "Homepage": "https://github.com/Yubi2Community/yubiconvert"
    },
    "split_keywords": [
        "numbers",
        "convert",
        "words",
        "indian",
        "currency"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd9de7cd1735e7c4e7c015961f2dcfa5bcc1bd45bedfb7d51521698c7d0377d0",
                "md5": "cb087c9797f133736aa9c7d86a88c147",
                "sha256": "c4b32872f5b3e33d9cdd3a15a811d0803ff5a9d66b1b83c415caba61f7e96937"
            },
            "downloads": -1,
            "filename": "yubiconvert-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "cb087c9797f133736aa9c7d86a88c147",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6303,
            "upload_time": "2023-05-08T07:27:42",
            "upload_time_iso_8601": "2023-05-08T07:27:42.918532Z",
            "url": "https://files.pythonhosted.org/packages/bd/9d/e7cd1735e7c4e7c015961f2dcfa5bcc1bd45bedfb7d51521698c7d0377d0/yubiconvert-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-08 07:27:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Yubi2Community",
    "github_project": "yubiconvert",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "yubiconvert"
}
        
Elapsed time: 0.06375s