{ "info": { "author": "Andy MacKinlay", "author_email": "admackin@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Convert spelled numbers such as 'one thousand, two hundred and thirty-three' or \n'one thousand two hundred thirty three' to their equivalent forms in digits \n(1233). \n\nHandles British-style \"and\" as well as US versions without \"and\", and \naccepts commas and hyphens in appropriate positions (although they are never \ncompulsory)\n\n >>> spelled_num_to_digits(\"one\")\n 1\n >>> spelled_num_to_digits(\"twelve\")\n 12\n >>> spelled_num_to_digits(\"seventy-two\")\n 72\n >>> spelled_num_to_digits(\"Three hundred\")\n 300\n >>> spelled_num_to_digits(\"TWELVE HUNDRED\")\n 1200\n >>> spelled_num_to_digits(\"twelve thousand three hundred four\")\n 12304\n >>> spelled_num_to_digits(\"twelve thousand, five hundred and six\")\n 12506\n >>> spelled_num_to_digits(\"six Million\")\n 6000000\n >>> spelled_num_to_digits(\"six million four hundred thousand five\")\n 6400005\n >>> spelled_num_to_digits(\n ... 'one hundred twenty three billion, four hundred fifty six million, '\n ... 'seven hundred eighty nine thousand twelve')\n 123456789012\n >>> spelled_num_to_digits(\"four decillion\")\n 4000000000000000000000000000000000L\n\n\n >>> replace_spelled_numbers('There are TEN sponges')\n 'There are 10 sponges'\n >>> replace_spelled_numbers('I got ninety nine problems')\n 'I got 99 problems'\n >>> replace_spelled_numbers('He got two million, one hundred and '\n ... 'eighty-two thousand, three hundred and twenty five problems')\n 'He got 2182325 problems'\n >>> replace_spelled_numbers('I have five coconuts and two hundred '\n ... 'thirty three carrots')\n 'I have 5 coconuts and 233 carrots'\n\n\nAdapted and extended from https://github.com/ghewgill/text2num", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/admackin/digify", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Digify", "package_url": "https://pypi.org/project/Digify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Digify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/admackin/digify" }, "release_url": "https://pypi.org/project/Digify/0.2/", "requires_dist": null, "requires_python": null, "summary": "Convert written out numbers to integers", "version": "0.2" }, "last_serial": 784102, "releases": { "0.1dev": [ { "comment_text": "", "digests": { "md5": "07ff621186b9bf2fa932c6b46af98254", "sha256": "02013c161cea251599075b1b0e3c7a15abd4801ca0c9a5026199fe207c868615" }, "downloads": -1, "filename": "Digify-0.1dev.tar.gz", "has_sig": false, "md5_digest": "07ff621186b9bf2fa932c6b46af98254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1875, "upload_time": "2012-09-21T06:57:30", "url": "https://files.pythonhosted.org/packages/82/a1/41477dd1a6dbaf20b97649de531b4426d382f78606cb78e6b7aeda2e1929/Digify-0.1dev.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c57a3c449f38b8f925b3153eb3a1767f", "sha256": "678e420baf636c681b2837f1e12e18366e60f5a2bbe7493bfdf59621686e61f4" }, "downloads": -1, "filename": "Digify-0.2.tar.gz", "has_sig": false, "md5_digest": "c57a3c449f38b8f925b3153eb3a1767f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2200, "upload_time": "2013-01-07T01:38:05", "url": "https://files.pythonhosted.org/packages/0c/bc/d789487498cb8232b92406978b973a7393802d97907e69ff8873f9eff20c/Digify-0.2.tar.gz" } ], "0.2dev": [ { "comment_text": "", "digests": { "md5": "1f9f4bac062b9d17b1b11cdf221a167d", "sha256": "70364355dbdb3196c721115942b2d2c56d8bee9d9a344d832b093570dfadd138" }, "downloads": -1, "filename": "Digify-0.2dev.tar.gz", "has_sig": false, "md5_digest": "1f9f4bac062b9d17b1b11cdf221a167d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2199, "upload_time": "2012-10-01T08:10:32", "url": "https://files.pythonhosted.org/packages/86/7c/9fcc2f98c6be9395ac6241aa608f31917cf623d3134969cb1dce3e4ece55/Digify-0.2dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c57a3c449f38b8f925b3153eb3a1767f", "sha256": "678e420baf636c681b2837f1e12e18366e60f5a2bbe7493bfdf59621686e61f4" }, "downloads": -1, "filename": "Digify-0.2.tar.gz", "has_sig": false, "md5_digest": "c57a3c449f38b8f925b3153eb3a1767f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2200, "upload_time": "2013-01-07T01:38:05", "url": "https://files.pythonhosted.org/packages/0c/bc/d789487498cb8232b92406978b973a7393802d97907e69ff8873f9eff20c/Digify-0.2.tar.gz" } ] }