{ "info": { "author": "Taro Ogawa ", "author_email": "tos@users.sourceforge.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Internationalization", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Localization", "Topic :: Text Processing :: Linguistic" ], "description": "num2words - Convert numbers to words in multiple languages\n==========================================================\n\n.. image:: https://img.shields.io/pypi/v/num2words.svg\n :target: https://pypi.python.org/pypi/num2words\n\n.. image:: https://travis-ci.org/savoirfairelinux/num2words.svg?branch=master\n :target: https://travis-ci.org/savoirfairelinux/num2words\n\n.. image:: https://coveralls.io/repos/github/savoirfairelinux/num2words/badge.svg?branch=master\n :target: https://coveralls.io/github/savoirfairelinux/num2words?branch=master\n\n\n``num2words`` is a library that converts numbers like ``42`` to words like ``forty-two``.\nIt supports multiple languages (see the list below for full list\nof languages) and can even generate ordinal numbers like ``forty-second``\n(although this last feature is a bit buggy for some languages at the moment).\n\nThe project is hosted on GitHub_. Contributions are welcome.\n\n.. _GitHub: https://github.com/savoirfairelinux/num2words\n\nInstallation\n------------\n\nThe easiest way to install ``num2words`` is to use pip::\n\n pip install num2words\n\nOtherwise, you can download the source package and then execute::\n\n python setup.py install\n\nThe test suite in this library is new, so it's rather thin, but it can be run with::\n\n python setup.py test\n\nTo run the full CI test suite which includes linting and multiple python environments::\n\n pip install tox\n tox\n\nUsage\n-----\nCommand line::\n\n $ num2words 10001\n ten thousand and one\n $ num2words 24,120.10\n twenty-four thousand, one hundred and twenty point one\n $ num2words 24,120.10 -l es\n veinticuatro mil ciento veinte punto uno\n $num2words 2.14 -l es --to currency\n dos euros con catorce centimos\n\nIn code there's only one function to use::\n\n >>> from num2words import num2words\n >>> num2words(42)\n forty-two\n >>> num2words(42, to='ordinal')\n forty-second\n >>> num2words(42, lang='fr')\n quarante-deux\n\nBesides the numerical argument, there are two main optional arguments.\n\n**to:** The converter to use. Supported values are:\n\n* ``cardinal`` (default)\n* ``ordinal``\n* ``ordinal_num``\n* ``year``\n* ``currency``\n\n**lang:** The language in which to convert the number. Supported values are:\n\n* ``en`` (English, default)\n* ``ar`` (Arabic)\n* ``cz`` (Czech)\n* ``de`` (German)\n* ``dk`` (Danish)\n* ``en_GB`` (English - Great Britain)\n* ``en_IN`` (English - India)\n* ``es`` (Spanish)\n* ``es_CO`` (Spanish - Colombia)\n* ``es_VE`` (Spanish - Venezuela)\n* ``eu`` (EURO)\n* ``fi`` (Finnish)\n* ``fr`` (French)\n* ``fr_CH`` (French - Switzerland)\n* ``fr_BE`` (French - Belgium)\n* ``fr_DZ`` (French - Algeria)\n* ``he`` (Hebrew)\n* ``id`` (Indonesian)\n* ``it`` (Italian)\n* ``ja`` (Japanese)\n* ``kn`` (Kannada)\n* ``ko`` (Korean)\n* ``lt`` (Lithuanian)\n* ``lv`` (Latvian)\n* ``no`` (Norwegian)\n* ``pl`` (Polish)\n* ``pt`` (Portuguese)\n* ``pt_BR`` (Portuguese - Brazilian)\n* ``sl`` (Slovene)\n* ``sr`` (Serbian)\n* ``ro`` (Romanian)\n* ``ru`` (Russian)\n* ``sl`` (Slovene)\n* ``tr`` (Turkish)\n* ``th`` (Thai)\n* ``vi`` (Vietnamese)\n* ``nl`` (Dutch)\n* ``uk`` (Ukrainian)\n\nYou can supply values like ``fr_FR``; if the country doesn't exist but the\nlanguage does, the code will fall back to the base language (i.e. ``fr``). If\nyou supply an unsupported language, ``NotImplementedError`` is raised.\nTherefore, if you want to call ``num2words`` with a fallback, you can do::\n\n try:\n return num2words(42, lang=mylang)\n except NotImplementedError:\n return num2words(42, lang='en')\n\nAdditionally, some converters and languages support other optional arguments\nthat are needed to make the converter useful in practice.\n\nWiki\n----\nFor additional information on some localization please check the Wiki_.\nAnd feel free to propose wiki enhancement.\n\n.. _Wiki: https://github.com/savoirfairelinux/num2words/wiki\n\nHistory\n-------\n\n``num2words`` is based on an old library, ``pynum2word``, created by Taro Ogawa\nin 2003. Unfortunately, the library stopped being maintained and the author\ncan't be reached. There was another developer, Marius Grigaitis, who in 2011\nadded Lithuanian support, but didn't take over maintenance of the project.\n\nI am thus basing myself on Marius Grigaitis' improvements and re-publishing\n``pynum2word`` as ``num2words``.\n\nVirgil Dupras, Savoir-faire Linux\n\n\nChangelog\n=========\n\n\nVersion 0.5.10 -- 2019/05/12\n----------------------------\n\n* Add Kannada language localization (#243)\n* Revert some copyrights changed by mistake (#254)\n* Add indian rupee to the supported currencies (#248)\n* Improve currency functions for German and French (#247)\n* Improve Slovene localization (#246)\n* Improve Spanish localization (#240)\n* Fix typo 'seperator' on source code (#238)\n* Convert string to decimal values (#223)\n* Improve German localization and test coverage (#237)\n* Improve Polish localization (#233)\n* Fix ordinal number for French ending on 1 (#236)\n\nVersion 0.5.9 -- 2019/01/10\n---------------------------\n\n* Fix encoding issue on release 0.5.8 (#229)\n* Improve Polish localization (#228)\n\n\nVersion 0.5.8 -- 2018/11/17\n---------------------------\n\n* Add Portuguese (Portugal) localization (#198)\n* Add a command line tool to use num2words\n* Use language iso code for Vietnamese\n* Improve Korean localization (#219)\n* Improve Serbian (Latin) localization (#207)\n* Improve testing setup (#220)\n* Improve German localization (#214) (#222)\n* Improve Romanian localization (#215)\n* Improve Spanish localization (#187) (#200)\n* Improve Russian localization (#211) (#212)\n* Improve French localization (23902ab)\n* Improve Arabic localization (#176)\n* Improve Lithuanian and Latvian localization (#185)\n* Improve Ukrainian localization (#183)\n\n\nVersion 0.5.7 -- 2018/06/27\n---------------------------\n\n* Add Finnish localization. (#170)\n* Add Japanese localization. (#171)\n* Add belgian-french localization. (#151)\n* Add Czech localization. (#154) \n* Add Thai localization. (#139)\n* Improve English localization. (#144) \n* Improve Spanish localization. (#167)\n* Improve Italian localization. (#143)\n* Improve documentation. (#155, #145, #174)\n\nVersion 0.5.6 -- 2017/11/22\n---------------------------\n\n* Refactor to_currency (#135)\n* Allow the use of other convertes to_currency, to_year (#95)\n* Fix code to respect PEP8 (#98, #105)\n* Add Slovene localization (#97)\n* Add Ukrainian localization (#93)\n* Add Dutch localization (#91)\n* Add Algeria-French localization (#86)\n* Add Turkish localization (#85)\n\nVersion 0.5.5 -- 2017/07/02\n---------------------------\n\n* Add Arabic localization (#72)\n* Add Spanish-Colombian and Spanish-Venezuelan localization (#67)\n* Add VietNam localization (#61)\n* Add Italian localization (#56, #59)\n* Improve Russian localization (#62)\n* Improve Polish localization (#58)\n\nVersion 0.5.4 -- 2016/10/18\n---------------------------\n\n* Tons of new languages!\n* Add Polish localization. (#23)\n* Add Swiss-French localization. (#38)\n* Add Russian localization. (#28, #46, #48)\n* Add Indonesian localization. (#29)\n* Add Norwegian localization. (#33)\n* Add Danish localization. (#40)\n* Add Brazilian localization. (#37, #47)\n* Improve German localization. (#25, #27, #49)\n* Improve Lithuanian localization. (#52)\n* Improve floating point spelling. (#24)\n\nVersion 0.5.3 -- 2015/06/09\n---------------------------\n\n* Fix packaging issues. (#21, #22)\n\nVersion 0.5.2 -- 2015/01/23\n---------------------------\n\n* Added Latvian localization. (#9)\n* Improved Spanish localization. (#10, #13, #14)\n* Improved Lithuanian localization. (#12)\n\nVersion 0.5.1 -- 2014/03/14\n---------------------------\n\n* Added Python 3 support with 2to3. (#3)\n* Fixed big numbers in spanish. (#2)\n* Fixed bugs in tanslation from 30 to 40 in spanish. (#4)\n* Fixed word joining in english. (#8)\n\nVersion 0.5.0 -- 2013/05/28\n---------------------------\n\n* Created ``num2words`` based on the old ``pynum2word`` project.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/savoirfairelinux/num2words", "keywords": "number word numbers words convert conversion i18n localisation localization internationalisation internationalization", "license": "LGPL", "maintainer": "Savoir-faire Linux inc.", "maintainer_email": "istvan.szalai@savoirfairelinux.com", "name": "num2words", "package_url": "https://pypi.org/project/num2words/", "platform": "", "project_url": "https://pypi.org/project/num2words/", "project_urls": { "Homepage": "https://github.com/savoirfairelinux/num2words" }, "release_url": "https://pypi.org/project/num2words/0.5.10/", "requires_dist": [ "docopt (>=0.6.2)" ], "requires_python": "", "summary": "Modules to convert numbers to words. Easily extensible.", "version": "0.5.10" }, "last_serial": 5259463, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "7e64f5a2c72ce4231decef69cecea015", "sha256": "30d109b269ca020a51269fc388a324a9b0c061e59290d2490ff88c281d19f5c8" }, "downloads": -1, "filename": "num2words-0.5.0.tar.gz", "has_sig": false, "md5_digest": "7e64f5a2c72ce4231decef69cecea015", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10548, "upload_time": "2013-05-28T17:24:19", "url": "https://files.pythonhosted.org/packages/83/36/6c0c1eb9d88a5567bae86ebd73be509db6a3992f78d288bbf1c963520308/num2words-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "2cdf88b06270d6cb6619d374245caf45", "sha256": "0757f77371c5620257d59b3cfd1ddc99f66c16270a58acbc42503299c1850c11" }, "downloads": -1, "filename": "num2words-0.5.1.tar.gz", "has_sig": false, "md5_digest": "2cdf88b06270d6cb6619d374245caf45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11003, "upload_time": "2014-03-14T14:51:43", "url": "https://files.pythonhosted.org/packages/8d/e8/d75611a586216e9deec38e885e0f87d311bd4eb686516eea636676e8e876/num2words-0.5.1.tar.gz" } ], "0.5.10": [ { "comment_text": "", "digests": { "md5": "106dffb893b1c6e11dd6a18b02c000cf", "sha256": "0b6e5f53f11d3005787e206d9c03382f459ef048a43c544e3db3b1e05a961548" }, "downloads": -1, "filename": "num2words-0.5.10-py3-none-any.whl", "has_sig": false, "md5_digest": "106dffb893b1c6e11dd6a18b02c000cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 101576, "upload_time": "2019-05-12T17:41:07", "url": "https://files.pythonhosted.org/packages/eb/a2/ea800689730732e27711c41beed4b2a129b34974435bdc450377ec407738/num2words-0.5.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d0c24b6b789ad6bf91952d92cb6285f", "sha256": "37cd4f60678f7e1045cdc3adf6acf93c8b41bf732da860f97d301f04e611cc57" }, "downloads": -1, "filename": "num2words-0.5.10.tar.gz", "has_sig": false, "md5_digest": "1d0c24b6b789ad6bf91952d92cb6285f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 114781, "upload_time": "2019-05-12T17:41:09", "url": "https://files.pythonhosted.org/packages/33/db/76f1151a1b0cfad532d41021b77cd231495bf72c47618166f92dcdff2ebe/num2words-0.5.10.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "2bf7e5b4efda0b4eacd0dc9b65762678", "sha256": "a1ff305f3efa9086f81172c6719661d680806325711f8f8f93f1c62a7dd6dc22" }, "downloads": -1, "filename": "num2words-0.5.2.tar.gz", "has_sig": false, "md5_digest": "2bf7e5b4efda0b4eacd0dc9b65762678", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14378, "upload_time": "2015-01-23T17:21:48", "url": "https://files.pythonhosted.org/packages/96/d2/62aec17dcb379e199af971b06356f5e37cd51eeab3981a07c55ea3f4b49b/num2words-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "b95765d0f0dd34f3c6b2801e39bb9c9a", "sha256": "408cb75cd41464ba16c8fe53b2a14e7200446fbfd86874cdb5f065a178b96a6e" }, "downloads": -1, "filename": "num2words-0.5.3.tar.gz", "has_sig": false, "md5_digest": "b95765d0f0dd34f3c6b2801e39bb9c9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22336, "upload_time": "2015-06-09T18:58:14", "url": "https://files.pythonhosted.org/packages/45/e2/d59fb87e37286de20d33ac3e4b52a4363353c34607dd366c2f4c13712c63/num2words-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "f32f35afb4c26222e550df2ba9f2b792", "sha256": "9c15ee58b2e23804c17d7fcf9864601b89ef54f85c5db600f1eb2b2b2709be86" }, "downloads": -1, "filename": "num2words-0.5.4.tar.gz", "has_sig": true, "md5_digest": "f32f35afb4c26222e550df2ba9f2b792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30878, "upload_time": "2016-10-18T13:50:55", "url": "https://files.pythonhosted.org/packages/8f/27/98c9acd3629aa9269aa746dde13b5e34529e1ddbada7e3c9b166d2101b54/num2words-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "ee530b71e5432c2acd7d5d5388d94aab", "sha256": "84e3ef9a7539135c67b1642156ffb22dc14946b342d1f0a9503e1f31374c37e2" }, "downloads": -1, "filename": "num2words-0.5.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ee530b71e5432c2acd7d5d5388d94aab", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 57171, "upload_time": "2017-07-12T14:44:53", "url": "https://files.pythonhosted.org/packages/5f/d8/1c1fb47cce56ff2cc1f5eb2740f2679045769778a746fbf9ebff1d70a63e/num2words-0.5.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ddca538a9bb52c8a28dcf187c5a0cdcc", "sha256": "29570bf3ff113f2a7eb508d75bbad19ae6934360d8a5e68ea8ff9ce29f02da9d" }, "downloads": -1, "filename": "num2words-0.5.5.tar.gz", "has_sig": false, "md5_digest": "ddca538a9bb52c8a28dcf187c5a0cdcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37943, "upload_time": "2017-07-12T14:44:55", "url": "https://files.pythonhosted.org/packages/7a/c7/d9c054399870f94700cd3ecb4797065d222f639cfcc95f0a2106c64245b1/num2words-0.5.5.tar.gz" } ], "0.5.6": [ { "comment_text": "", "digests": { "md5": "08a8f08e58d3aeda1f83fd11a97252c0", "sha256": "529017394eef84daf63bb57e837fe2fb81363d1b06f6114e86608dae7ceb11ee" }, "downloads": -1, "filename": "num2words-0.5.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08a8f08e58d3aeda1f83fd11a97252c0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 64814, "upload_time": "2017-11-22T19:38:01", "url": "https://files.pythonhosted.org/packages/aa/6e/6d026d15d1b0fd37a9dd42ecf559f36871cee67158aff5ba652d3130e8b9/num2words-0.5.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7a26f40e7340a5fc35ec23213cfde06", "sha256": "aea26c2d11d636f0e9da094f2bf55ac94cb1c380ff1f86e8db22c210e5a6a05f" }, "downloads": -1, "filename": "num2words-0.5.6.tar.gz", "has_sig": false, "md5_digest": "e7a26f40e7340a5fc35ec23213cfde06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 76351, "upload_time": "2017-11-22T19:38:02", "url": "https://files.pythonhosted.org/packages/11/e0/4ce77d66ed529a8aa8ea780a43520028f9676064e0efb4e33aa43a0a12b3/num2words-0.5.6.tar.gz" } ], "0.5.7": [ { "comment_text": "", "digests": { "md5": "09aef01a989a65566f5b65e9be3f7e1d", "sha256": "ac4b5971b427611bc565c395e95289ba09b3b1c0fb041ad2538786dde816d664" }, "downloads": -1, "filename": "num2words-0.5.7.tar.gz", "has_sig": false, "md5_digest": "09aef01a989a65566f5b65e9be3f7e1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 94066, "upload_time": "2018-07-06T01:20:31", "url": "https://files.pythonhosted.org/packages/bc/9a/31a9151abd891ab7387d8d74cb0d84c4e77674735dbf85a63dfeb8eed6a6/num2words-0.5.7.tar.gz" } ], "0.5.8": [ { "comment_text": "", "digests": { "md5": "62aa9e1b1f4bfe88399c5305cb163efb", "sha256": "f923a5877abba82b916acd92432720e09a95d507d620c01fabd0143f7460a4d7" }, "downloads": -1, "filename": "num2words-0.5.8-py3-none-any.whl", "has_sig": false, "md5_digest": "62aa9e1b1f4bfe88399c5305cb163efb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 92884, "upload_time": "2018-11-19T14:59:48", "url": "https://files.pythonhosted.org/packages/7d/2c/72bc7baabd7bc25f08a9dbc0ee8c56bb8f26a4d96c35786081b5217640d3/num2words-0.5.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "34d611b92fb4c79f6ff2e2ea53d7f0cf", "sha256": "60ba89db4913820885e6974cf329d9a02846f3b612c383fbbb2b66997cc1f6e1" }, "downloads": -1, "filename": "num2words-0.5.8.tar.gz", "has_sig": false, "md5_digest": "34d611b92fb4c79f6ff2e2ea53d7f0cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 111500, "upload_time": "2018-11-19T14:59:49", "url": "https://files.pythonhosted.org/packages/d9/b9/5fdc197a057c65d2108544119e87268ab52344dc5e02885e6be9508c4a9e/num2words-0.5.8.tar.gz" } ], "0.5.9": [ { "comment_text": "", "digests": { "md5": "a24e3bfd96a8c2cd2ff086526fa00a57", "sha256": "f2f561a8ee02b57e7f17837198d353f05ea1199792c4860da57322f7aa86d171" }, "downloads": -1, "filename": "num2words-0.5.9-py3-none-any.whl", "has_sig": false, "md5_digest": "a24e3bfd96a8c2cd2ff086526fa00a57", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 99059, "upload_time": "2019-01-12T18:08:33", "url": "https://files.pythonhosted.org/packages/97/59/daea20448b3bf3cc07694f393a2a9d06439e4c9a96f83734d9d2c5231703/num2words-0.5.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0914f2e174d81d5ead1ba8c657bfe918", "sha256": "c2b9ee11299f97a2c60ad71619b6344a975dbf65c44b7103077700706af4b378" }, "downloads": -1, "filename": "num2words-0.5.9.tar.gz", "has_sig": false, "md5_digest": "0914f2e174d81d5ead1ba8c657bfe918", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 110185, "upload_time": "2019-01-12T18:08:34", "url": "https://files.pythonhosted.org/packages/dc/c2/54a6727e3d5a3450e62dde98dbfac04968e3053a3bed841d99c15ce02d2a/num2words-0.5.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "106dffb893b1c6e11dd6a18b02c000cf", "sha256": "0b6e5f53f11d3005787e206d9c03382f459ef048a43c544e3db3b1e05a961548" }, "downloads": -1, "filename": "num2words-0.5.10-py3-none-any.whl", "has_sig": false, "md5_digest": "106dffb893b1c6e11dd6a18b02c000cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 101576, "upload_time": "2019-05-12T17:41:07", "url": "https://files.pythonhosted.org/packages/eb/a2/ea800689730732e27711c41beed4b2a129b34974435bdc450377ec407738/num2words-0.5.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d0c24b6b789ad6bf91952d92cb6285f", "sha256": "37cd4f60678f7e1045cdc3adf6acf93c8b41bf732da860f97d301f04e611cc57" }, "downloads": -1, "filename": "num2words-0.5.10.tar.gz", "has_sig": false, "md5_digest": "1d0c24b6b789ad6bf91952d92cb6285f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 114781, "upload_time": "2019-05-12T17:41:09", "url": "https://files.pythonhosted.org/packages/33/db/76f1151a1b0cfad532d41021b77cd231495bf72c47618166f92dcdff2ebe/num2words-0.5.10.tar.gz" } ] }