{ "info": { "author": "Joel B. Mohler", "author_email": "joel@kiwistrawberry.us", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Introduction and Examples\n-------------------------\n\nThe fuzzyparsers library provides a small collection of functions to sanitize\nfree form user input. For the moment its chief value is the flexible date\nparser. The library strives to be locale smart in parsing dates.\n\nThe library has two main parsers. The first is a prefix parser which compares\na string to a list of strings and returns the unique element of the list which\nmatches the prefix. An exception is thrown if the match is not unique.\n\n >>> from fuzzyparsers import fuzzy_match\n >>> fuzzy_match(['aab','bba','abc'],'aa')\n 'aab'\n >>> fuzzy_match(['aab','bba','abc'],'a') # two strings starting with 'a'.\n Traceback (most recent call last):\n ... \n ValueError: ambiguous match for 'a'\n\nThe second parser parses dates in various formats and returns a datetime.date\nobject. Accepted formats include::\n\n jan 12, 2003\n jan 5\n 2004-3-5\n +34 -- 34 days in the future (relative to todays date)\n -4 -- 4 days in the past (relative to todays date)\n\nFor instance:\n\n >>> from fuzzyparsers import parse_date\n >>> parse_date('jun 17 2010') # my youngest son's birthday\n datetime.date(2010, 6, 17)\n\nThe library allows setting a default date to fill in specified components of a\ndate (e.g. the year). By default, a date with-out a year to will give the\ncurrent year.\n\n >>> from fuzzyparsers import DateParser\n >>> import datetime\n >>> DateParser(today=datetime.date(2013, 3, 1)).parse_date('feb 3')\n datetime.date(2013, 2, 3)\n\nTODO\n----\n\nWe'd like to support the following features:\n\n* Parsing time strings like \"10 am\" and \"2 3 pm\"\n* A \"[0-9]*.[0-9]*\" with the first hunk a month and the second hunk a day\n should return the month/day combination which is nearest. For example,\n \"12-3\" would return december 3 of this year or last year.\n\nChangelog\n---------\n* 0.9.0 - support Python 3\n* 0.8.0 - switch to MIT license because I couldn't figure out why I cared about\n GPL for this package.\n* 0.7.3 - locale month-day order issues fixed (thanks to Treeve for getting\n this started.\n* 0.7.2 - added doc-tests and \"march 2012\" date format; doc-test scripts\n* 0.7.1 - install fixes\n* 0.7 - overhaul of date parsing api to support relative dates (not necessarily\n relative to the current date)\n* 0.6.x - initial public release and series of doc/install corrections\n\nInstallation\n------------\n\nFuzzyparsers is written by Joel B. Mohler and distributed under the terms of\nthe MIT license.\n\nUse the following commands to run the extensive doc-tests::\n\n python -m doctest fuzzyparsers/*.py\n python -m doctest README.txt\n\nTo install fuzzyparsers, do the normal python thing (probably as root)::\n\n python setup.py install\n\nor::\n\n pip install fuzzyparsers", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/jbmohler/fuzzyparsers", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fuzzyparsers", "package_url": "https://pypi.org/project/fuzzyparsers/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fuzzyparsers/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/jbmohler/fuzzyparsers" }, "release_url": "https://pypi.org/project/fuzzyparsers/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "A collection of free-form input parsers (with special focus on dates)", "version": "0.9.0" }, "last_serial": 991213, "releases": { "0.6": [ { "comment_text": "", "digests": { "md5": "c6e38b9f7338e9495ffd3e9bc44b7a2e", "sha256": "b55ce711c5852271eb67df9b5994b5afb8c4f3f9dcb098e380c3efc65d5b47e8" }, "downloads": -1, "filename": "fuzzyparsers-0.6-py2.6.egg", "has_sig": false, "md5_digest": "c6e38b9f7338e9495ffd3e9bc44b7a2e", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6558, "upload_time": "2011-01-27T04:03:56", "url": "https://files.pythonhosted.org/packages/b2/ba/fff5666e6e3547ca6566e9d1858d26e3119a4c0e903b9dbb48cf1febbb7e/fuzzyparsers-0.6-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "a26b3aff62583bdbd897ad0dc21eff62", "sha256": "d828eba2c76510baa0c2bc963f6f5cddf12fcb4194887a6a630777bdc82ac8af" }, "downloads": -1, "filename": "fuzzyparsers-0.6.tar.gz", "has_sig": false, "md5_digest": "a26b3aff62583bdbd897ad0dc21eff62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3272, "upload_time": "2011-01-27T04:03:56", "url": "https://files.pythonhosted.org/packages/79/f4/bd7d1463bf30399625ad48d0d1ca4eeda84de8711154f253b46db21671f7/fuzzyparsers-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "e7b57ac34ff151b9afd4f0b0c2256799", "sha256": "afaa97ab85ba6f77e23471895a465a3dfad7f6a0c9672c9c640cf2bcf798c5cb" }, "downloads": -1, "filename": "fuzzyparsers-0.6.1-py2.6.egg", "has_sig": false, "md5_digest": "e7b57ac34ff151b9afd4f0b0c2256799", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6556, "upload_time": "2011-01-27T04:05:13", "url": "https://files.pythonhosted.org/packages/0a/83/c8ba0b1db37278e6acca123502d40aabc7b291c83001e35ceeff0725a350/fuzzyparsers-0.6.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "5e48750f54864593e0181668ebe88522", "sha256": "08e522747c2b7aafd74dfd8e573ae425216b9c408409f9a6a29c03c1b21b7b72" }, "downloads": -1, "filename": "fuzzyparsers-0.6.1.tar.gz", "has_sig": false, "md5_digest": "5e48750f54864593e0181668ebe88522", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3278, "upload_time": "2011-01-27T04:05:13", "url": "https://files.pythonhosted.org/packages/3c/c6/8180c8c189c7957bd9b57f20173825fec42c53e47ee4de7e142489f814d7/fuzzyparsers-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "d425166b739fcaf5f7602e60c79af630", "sha256": "ce0edee941ec5eb2e1cb1b45bfe177fae418b7d389c9a1dfeeec4418aa39cc7d" }, "downloads": -1, "filename": "fuzzyparsers-0.6.2-py2.6.egg", "has_sig": false, "md5_digest": "d425166b739fcaf5f7602e60c79af630", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6694, "upload_time": "2011-01-27T04:17:08", "url": "https://files.pythonhosted.org/packages/77/0c/3906928dae383828d1061ccb41118bc3921ea84467294b178347b3dd26b8/fuzzyparsers-0.6.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "ac6419497f1583439d92cd72059b6bfc", "sha256": "9fef36cd99ce76a5c1dfc4335243be94142472d36c722209a1e69f5c161251bb" }, "downloads": -1, "filename": "fuzzyparsers-0.6.2.tar.gz", "has_sig": false, "md5_digest": "ac6419497f1583439d92cd72059b6bfc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3424, "upload_time": "2011-01-27T04:17:08", "url": "https://files.pythonhosted.org/packages/9a/7c/3c78cb717bb66ea4dbbcd99a9d631df6f10110c463b84f6dd96b31e93f45/fuzzyparsers-0.6.2.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "3870b4ae5edfffe9052fc83f01063740", "sha256": "10951f61dd95bfcfb6a3856946c0fdbc8f3435ac5981f5045ed594171cab9caf" }, "downloads": -1, "filename": "fuzzyparsers-0.7-py2.6.egg", "has_sig": false, "md5_digest": "3870b4ae5edfffe9052fc83f01063740", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 7639, "upload_time": "2011-01-28T10:12:46", "url": "https://files.pythonhosted.org/packages/25/e6/3617a4508841e2d133300be994888ab63f0b0a7db5487a3e58a4cfd0ef4c/fuzzyparsers-0.7-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "5e605b9d2d324c00d1c68d75c368afce", "sha256": "624f62a0860a33a9210122991760e26062d87da3aa19f1d3395328844d95fbba" }, "downloads": -1, "filename": "fuzzyparsers-0.7.tar.gz", "has_sig": false, "md5_digest": "5e605b9d2d324c00d1c68d75c368afce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3879, "upload_time": "2011-01-28T10:37:35", "url": "https://files.pythonhosted.org/packages/ec/c4/9675183737e22ba25de3afe1870def538220d1b088af3107224d4f5be921/fuzzyparsers-0.7.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "9ee4cf67e28b921245a91d99dad82e60", "sha256": "7155179967f97caf9223d10d311efbf2fe64524548bc1820b83cfd15bfb1df40" }, "downloads": -1, "filename": "fuzzyparsers-0.7.1-py2.6.egg", "has_sig": false, "md5_digest": "9ee4cf67e28b921245a91d99dad82e60", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 7671, "upload_time": "2011-03-11T04:23:53", "url": "https://files.pythonhosted.org/packages/82/c9/e7d3a41da5af78169bcd106350caae5171e475aa1c7e8f0881aafdc291a3/fuzzyparsers-0.7.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "1f40e1edbd728f430eb80322c4a4e4e4", "sha256": "825c97475d4fb5bdcadf72b92a4bab44fcbde38020433875c034c49a212e0bf8" }, "downloads": -1, "filename": "fuzzyparsers-0.7.1.tar.gz", "has_sig": false, "md5_digest": "1f40e1edbd728f430eb80322c4a4e4e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14396, "upload_time": "2011-03-11T04:23:53", "url": "https://files.pythonhosted.org/packages/21/1f/6475f01027f7e9a4f90d8ece056b9d1cc31f4bb8888681dac0009c9735a0/fuzzyparsers-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "eadb39f5d860c221b3e7b17cd869301e", "sha256": "e4a274950873bc684aa5324343711494055a995f0c018cf6595aabb3d3ddabd0" }, "downloads": -1, "filename": "fuzzyparsers-0.7.2-py2.6.egg", "has_sig": false, "md5_digest": "eadb39f5d860c221b3e7b17cd869301e", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 9451, "upload_time": "2011-04-09T22:53:46", "url": "https://files.pythonhosted.org/packages/34/ef/16ca4804567eb38a062a5a06b7189634e6a4cf2bbfa61d7d055b7bf2f807/fuzzyparsers-0.7.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "8dae4d458b978a53bbc7dae8023f9407", "sha256": "8fcd5e0eee26146c5561da3b8e1d2c7254e64dd3d849abe1078d52f2ca7b5d11" }, "downloads": -1, "filename": "fuzzyparsers-0.7.2-py2.7.egg", "has_sig": false, "md5_digest": "8dae4d458b978a53bbc7dae8023f9407", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 10979, "upload_time": "2012-04-28T19:57:46", "url": "https://files.pythonhosted.org/packages/73/54/57b55c2a736ab70838a418f64c3e8fca0423693e80c980075f08783a836c/fuzzyparsers-0.7.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "6e5bb248ebb1d225cdbd70d9ad5bd1ff", "sha256": "689f7a34f29fe2783a0f04349690f0e5f9e42cfa6d129d19254141a4afd89c1a" }, "downloads": -1, "filename": "fuzzyparsers-0.7.2.tar.gz", "has_sig": false, "md5_digest": "6e5bb248ebb1d225cdbd70d9ad5bd1ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14859, "upload_time": "2011-04-09T22:53:45", "url": "https://files.pythonhosted.org/packages/52/3d/f7352e6a28224fb6b070fb65b81da7f8d10c4a259c9359c017a24f923ad6/fuzzyparsers-0.7.2.tar.gz" } ], "0.7.3": [ { "comment_text": "", "digests": { "md5": "43be7e5023facd68fa4abb82a195023d", "sha256": "0f08999cd4d7ffe1928f03ab0340ae81fdbe4a570a061bee6d173289a7afa431" }, "downloads": -1, "filename": "fuzzyparsers-0.7.3-py2.7.egg", "has_sig": false, "md5_digest": "43be7e5023facd68fa4abb82a195023d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11109, "upload_time": "2012-04-28T20:01:42", "url": "https://files.pythonhosted.org/packages/3f/4f/a5e0d8db1b4825df0a4db9277ed5a6ee70b6aaf304163d87c702ee86eb18/fuzzyparsers-0.7.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "0b6cf4cc6314155a4c6f985ccaab3912", "sha256": "84e9e90cf35c88b0055d294eb7e7cff48bd9839b1473616c33c5064345368a63" }, "downloads": -1, "filename": "fuzzyparsers-0.7.3.tar.gz", "has_sig": false, "md5_digest": "0b6cf4cc6314155a4c6f985ccaab3912", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16564, "upload_time": "2012-04-28T20:01:41", "url": "https://files.pythonhosted.org/packages/e4/9d/b062c69c644eccfac19db6d333676fcabb920333505d1f4a100b30232f3a/fuzzyparsers-0.7.3.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "2901fc747574da6322660910e95a1fdf", "sha256": "bc60b6709a6ae930293f450af3cb098b1bf7af616c91d304a2cf32b47e636ba7" }, "downloads": -1, "filename": "fuzzyparsers-0.8.0-py2.7.egg", "has_sig": false, "md5_digest": "2901fc747574da6322660910e95a1fdf", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11486, "upload_time": "2012-06-23T14:19:06", "url": "https://files.pythonhosted.org/packages/06/e9/4b0ead9aebe64865cdb56d054409bf47812afbff61ae5d86519d4df2694a/fuzzyparsers-0.8.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8cc6394ab231393b275448215fd8d470", "sha256": "75651cbada9e654568f206b0c9923e8819203185c821a1ada3755d591a38ad2f" }, "downloads": -1, "filename": "fuzzyparsers-0.8.0.tar.gz", "has_sig": false, "md5_digest": "8cc6394ab231393b275448215fd8d470", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10771, "upload_time": "2012-06-23T14:19:06", "url": "https://files.pythonhosted.org/packages/73/2c/4ab22212121c595fddcc48fdde6f438ba671280c5fe49b5cb65a668c1c03/fuzzyparsers-0.8.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "fb09e61936f72100c24d90bff2ed919d", "sha256": "daf0a44d85cb5937d958816e6c7469f494a25dd01c39a7b5b3079770d6d55178" }, "downloads": -1, "filename": "fuzzyparsers-0.9.0-py2.7.egg", "has_sig": false, "md5_digest": "fb09e61936f72100c24d90bff2ed919d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11481, "upload_time": "2014-02-05T13:02:11", "url": "https://files.pythonhosted.org/packages/b9/a3/a94b8e4bd6f8ab4ae64f358b2a3336daefc78c5cd9dab0add995da585670/fuzzyparsers-0.9.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "000d24d7c64843780896e116cc13bfb7", "sha256": "b230ba468a11763600956b1e492a244476c3e315a8ecc4959ca065c4817afe63" }, "downloads": -1, "filename": "fuzzyparsers-0.9.0.tar.gz", "has_sig": false, "md5_digest": "000d24d7c64843780896e116cc13bfb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10794, "upload_time": "2014-02-05T13:02:04", "url": "https://files.pythonhosted.org/packages/be/7d/3c74f4b4810b04409f8bf6f810a5c121e8478466334200d2bdde0fa5aea9/fuzzyparsers-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fb09e61936f72100c24d90bff2ed919d", "sha256": "daf0a44d85cb5937d958816e6c7469f494a25dd01c39a7b5b3079770d6d55178" }, "downloads": -1, "filename": "fuzzyparsers-0.9.0-py2.7.egg", "has_sig": false, "md5_digest": "fb09e61936f72100c24d90bff2ed919d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11481, "upload_time": "2014-02-05T13:02:11", "url": "https://files.pythonhosted.org/packages/b9/a3/a94b8e4bd6f8ab4ae64f358b2a3336daefc78c5cd9dab0add995da585670/fuzzyparsers-0.9.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "000d24d7c64843780896e116cc13bfb7", "sha256": "b230ba468a11763600956b1e492a244476c3e315a8ecc4959ca065c4817afe63" }, "downloads": -1, "filename": "fuzzyparsers-0.9.0.tar.gz", "has_sig": false, "md5_digest": "000d24d7c64843780896e116cc13bfb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10794, "upload_time": "2014-02-05T13:02:04", "url": "https://files.pythonhosted.org/packages/be/7d/3c74f4b4810b04409f8bf6f810a5c121e8478466334200d2bdde0fa5aea9/fuzzyparsers-0.9.0.tar.gz" } ] }