# convert_numbers
![Twitter Follow](https://img.shields.io/twitter/follow/Al_Azwari?label=Follow&style=social) [![Downloads](https://pepy.tech/badge/convert-numbers)](https://pepy.tech/project/convert-numbers) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django?style=plastic) [![PyPI version](https://badge.fury.io/py/convert-numbers.svg)](https://badge.fury.io/py/convert-numbers)
##### Arabic Persian English Hindi Numbers Conversion
##### Installation
```bash
pip install convert_numbers
```
##### Usage
```python
import convert_numbers
# From Hindi To Englis
print(convert_numbers.hindi_to_english('٨٧٦٥٤٣٢٣٤٥٦٧٨')) #8765432345678
# From Englis To Hindi
print(convert_numbers.english_to_hindi('12309876523')) ##١٢٣٠٩٨٧٦٥٢٣
# From Hindi To Arabic
print(convert_numbers.hindi_to_arabic('٨٧٦٥٤٣٢٣٤٥٦٧٨')) #8765432345678
# From Arabic To Hindi
print(convert_numbers.arabic_to_hindi('12309876523')) #١٢٣٠٩٨٧٦٥٢٣
# From Arabic To English
print(convert_numbers.arabic_to_english('٢٣٤٥٦٧٨٠٩٨٧٦')) #234567809876
# From English To Arabic
print(convert_numbers.english_to_arabic('09876523456')) #٠٩٨٧٦٥٢٣٤٥٦
# From Persian To English
print(convert_numbers.persian_to_english('۵۱۲۳۹۶۰۴۴')) #512396044
# From English To Persian
print(convert_numbers.english_to_persian('512396044')) #۵۱۲۳۹۶۰۴۴
# From Persian To Hindi
print(convert_numbers.persian_to_hindi('۵۱۲۳۹۶۰۴۴')) #٥١٢٣٩٦٠٤٤
# From Hindi To Persian
print(convert_numbers.hindi_to_persian('٢٣٤٥٦٧٨٠٩٨٧٦')) #۲۳۴۵۶۷۸۰۹۸۷۶
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)
Raw data
{
"_id": null,
"home_page": "https://github.com/azwri/convert_numbers",
"name": "convert-numbers",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Arabic Persian English Hindi Numbers Python conversion numbers from-to Arabic,Hinid,Persian and English",
"author": "Azwri",
"author_email": "aazwri@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/82/28/38b315f803d0eebe447663468f30b02057df9162a1ee5fa90e1db57feb61/convert_numbers-0.4.tar.gz",
"platform": "",
"description": "# convert_numbers\n![Twitter Follow](https://img.shields.io/twitter/follow/Al_Azwari?label=Follow&style=social) [![Downloads](https://pepy.tech/badge/convert-numbers)](https://pepy.tech/project/convert-numbers) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django?style=plastic) [![PyPI version](https://badge.fury.io/py/convert-numbers.svg)](https://badge.fury.io/py/convert-numbers)\n##### Arabic Persian English Hindi Numbers Conversion\n\n\n##### Installation\n\n```bash\npip install convert_numbers\n```\n\n##### Usage\n\n```python\nimport convert_numbers\n\n# From Hindi To Englis\nprint(convert_numbers.hindi_to_english('\u0668\u0667\u0666\u0665\u0664\u0663\u0662\u0663\u0664\u0665\u0666\u0667\u0668')) #8765432345678\n\n\n# From Englis To Hindi\nprint(convert_numbers.english_to_hindi('12309876523')) ##\u0661\u0662\u0663\u0660\u0669\u0668\u0667\u0666\u0665\u0662\u0663\n\n\n# From Hindi To Arabic\nprint(convert_numbers.hindi_to_arabic('\u0668\u0667\u0666\u0665\u0664\u0663\u0662\u0663\u0664\u0665\u0666\u0667\u0668')) #8765432345678\n\n\n# From Arabic To Hindi\nprint(convert_numbers.arabic_to_hindi('12309876523')) #\u0661\u0662\u0663\u0660\u0669\u0668\u0667\u0666\u0665\u0662\u0663\n\n\n# From Arabic To English\nprint(convert_numbers.arabic_to_english('\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0660\u0669\u0668\u0667\u0666')) #234567809876\n\n\n# From English To Arabic\nprint(convert_numbers.english_to_arabic('09876523456')) #\u0660\u0669\u0668\u0667\u0666\u0665\u0662\u0663\u0664\u0665\u0666\n\n\n# From Persian To English\nprint(convert_numbers.persian_to_english('\u06f5\u06f1\u06f2\u06f3\u06f9\u06f6\u06f0\u06f4\u06f4')) #512396044\n\n\n# From English To Persian\nprint(convert_numbers.english_to_persian('512396044')) #\u06f5\u06f1\u06f2\u06f3\u06f9\u06f6\u06f0\u06f4\u06f4\n\n\n# From Persian To Hindi\nprint(convert_numbers.persian_to_hindi('\u06f5\u06f1\u06f2\u06f3\u06f9\u06f6\u06f0\u06f4\u06f4')) #\u0665\u0661\u0662\u0663\u0669\u0666\u0660\u0664\u0664\n\n\n# From Hindi To Persian\nprint(convert_numbers.hindi_to_persian('\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0660\u0669\u0668\u0667\u0666')) #\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f0\u06f9\u06f8\u06f7\u06f6\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)",
"bugtrack_url": null,
"license": "MIT",
"summary": "Arabic Persian English Hindi Numbers is a Python library to convert numbers from-to Arabic, Hinid, Persian and English.",
"version": "0.4",
"project_urls": {
"Homepage": "https://github.com/azwri/convert_numbers"
},
"split_keywords": [
"arabic persian english hindi numbers python conversion numbers from-to arabic",
"hinid",
"persian and english"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "822838b315f803d0eebe447663468f30b02057df9162a1ee5fa90e1db57feb61",
"md5": "4f232fe8b65dadcf6afcc9e6e81be01a",
"sha256": "40c0bc7906f60f7a40c06f8cc277284bae4e88fd387917af0d99f4dc115caf7e"
},
"downloads": -1,
"filename": "convert_numbers-0.4.tar.gz",
"has_sig": false,
"md5_digest": "4f232fe8b65dadcf6afcc9e6e81be01a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 319615,
"upload_time": "2020-11-02T18:36:19",
"upload_time_iso_8601": "2020-11-02T18:36:19.891402Z",
"url": "https://files.pythonhosted.org/packages/82/28/38b315f803d0eebe447663468f30b02057df9162a1ee5fa90e1db57feb61/convert_numbers-0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-11-02 18:36:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "azwri",
"github_project": "convert_numbers",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "convert-numbers"
}