{ "info": { "author": "Daniel Neuh\u00e4user", "author_email": "ich@danielneuhaeuser.de", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "OORE\n====\n\nOORE (Object oriented regular expressions) is a python library that attempts\nto provide an object oriented layer above the `re` standard library.\n\nThe idea behind this project is to enable users to create and combine regular\nexpressions programmatically. The `re` module which is a more or less simple\nwrapper over an underlying C library doesn't provide any interface that truly\nmakes this possible, which means that especially complex regular expressions\nneed to be generated by concatenating strings.\n\nThis means that dealing with such code is annoying, difficult, and error-prone.\n\nTo give you an example, this is how you would create a regular expression that\nmatches a `Unicode Language Identifier`_::\n\n from oore import r\n\n digit = r(u'[0-9]')\n alpha = r(u'[A-Za-z')\n alphanum = r(u'[0-9A-Za-z]')\n unicode_variant_subtag = alphanum[5, 8] | (digit + alphanum[3])\n unicode_region_subtag = alpha[2] | digit[3]\n unicode_script_subtag = alpha[4]\n unicode_language_subtag = alpha[2, 8]\n sep = r(u'[-_]')\n\n unicode_language_id = r(u'root') | (\n unicode_language_subtag +\n (sep + unicode_script_subtag)[0, 1] +\n (sep + unicode_region_subtag)[0, 1] +\n (sep + unicode_variant_subtag)[0, ...]\n )\n\n\n.. _Unicode Language Identifier: http://www.unicode.org/reports/tr35/#Unicode_language_identifier\n\nThis can now be used like a `re.RegexObject`, to get a `re.MatchObject` you\nsimply use the `.match()` method::\n\n match = unicode_language_id.match('de-DE')", "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/DasIch/oore", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "oore", "package_url": "https://pypi.org/project/oore/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/oore/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/DasIch/oore" }, "release_url": "https://pypi.org/project/oore/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Object-Oriented Regular Expressions", "version": "0.2.1" }, "last_serial": 1375616, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8db8eb5d29065b69f36df7debcbb988f", "sha256": "bf5b16b509eab4ed0a486d81477adc03ce60a6bacb0121179daf4421d336265a" }, "downloads": -1, "filename": "oore-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8db8eb5d29065b69f36df7debcbb988f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3283, "upload_time": "2014-12-30T00:41:44", "url": "https://files.pythonhosted.org/packages/cd/42/22c1e64c82a282e02cc5960d09af34932bdd4d9aa1322d63dc4aa45738f7/oore-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dce0b8b5fb4e044c7224835515756ac", "sha256": "b36a8c2578c9e8d5597532dd0c71bde4f9e8cb9f841f4fa4c5b39f639a841e39" }, "downloads": -1, "filename": "oore-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5dce0b8b5fb4e044c7224835515756ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2777, "upload_time": "2014-12-30T00:41:54", "url": "https://files.pythonhosted.org/packages/13/e7/4a8f6f89abd3fad5d9b48103450f7252807dd6b7b5a99abb7e49e9eafc1c/oore-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b5b3040b90cf459c4862b9fce419d607", "sha256": "79e4bac2043cc845fa82d9cbb7abff54124e661ebff130bbd4de2c3664e2ff04" }, "downloads": -1, "filename": "oore-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5b3040b90cf459c4862b9fce419d607", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4682, "upload_time": "2015-01-04T15:23:39", "url": "https://files.pythonhosted.org/packages/ea/27/a5ecc22fde3411996db559f0ad6eced5b91406fbd0e7f08618cf93ccd35d/oore-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7eb00571226e857a850938dc348c78b", "sha256": "f0919fa36e7f060f3e8cb3831b8bdd5c83cfd0dcad4b160354c8e4a3ffbcdf0c" }, "downloads": -1, "filename": "oore-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c7eb00571226e857a850938dc348c78b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3015, "upload_time": "2015-01-04T15:24:05", "url": "https://files.pythonhosted.org/packages/80/c0/2e0109744cfb272e06d4b31a1e16b9d1041108195517be5c16744a93eb97/oore-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a923afbbd8d8566a5ff495907b54c094", "sha256": "002f5ca744c614b7d87500b2c901d445e2915999b4d803315abc8e6f27b4ef48" }, "downloads": -1, "filename": "oore-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a923afbbd8d8566a5ff495907b54c094", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4690, "upload_time": "2015-01-08T15:58:20", "url": "https://files.pythonhosted.org/packages/6c/66/c3ddbc0fb1f19b80ae6482db05b25e86e2373f32bcc5688c4d061bbf668c/oore-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8b5d5be17aa6c9de92ec366756d179a", "sha256": "3671394fde65ea0470476babe56d3619106fcf63111b4f557805401c7949e0f5" }, "downloads": -1, "filename": "oore-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e8b5d5be17aa6c9de92ec366756d179a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3019, "upload_time": "2015-01-08T15:58:27", "url": "https://files.pythonhosted.org/packages/df/83/86c9e10993870d3a44e99fb96e45147d4c3066df922778ecfb16c99cebb9/oore-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6921b2ba0ba89b9cd8312d3f06091126", "sha256": "35f8b0da083f30ce53037c6b9eb6857b724dd904b745d14a2e48a8555c73934d" }, "downloads": -1, "filename": "oore-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6921b2ba0ba89b9cd8312d3f06091126", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4691, "upload_time": "2015-01-08T16:33:27", "url": "https://files.pythonhosted.org/packages/b3/c5/717358e6cc8ec4168cbae1fb36c5656ed19958da3cb8c19e2eaaf04fb4cb/oore-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74f0e0dae9148821c3ffccef7b444e59", "sha256": "9d19c13f10edf0f1889bc0a1cbdef45e29f97dd60594e012e058776242f8c160" }, "downloads": -1, "filename": "oore-0.2.1.tar.gz", "has_sig": false, "md5_digest": "74f0e0dae9148821c3ffccef7b444e59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3016, "upload_time": "2015-01-08T16:33:36", "url": "https://files.pythonhosted.org/packages/7e/bf/7a71d20df36ae0f697c0f9ddbee6e55b8af8338422598b28b15193ee4091/oore-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6921b2ba0ba89b9cd8312d3f06091126", "sha256": "35f8b0da083f30ce53037c6b9eb6857b724dd904b745d14a2e48a8555c73934d" }, "downloads": -1, "filename": "oore-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6921b2ba0ba89b9cd8312d3f06091126", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4691, "upload_time": "2015-01-08T16:33:27", "url": "https://files.pythonhosted.org/packages/b3/c5/717358e6cc8ec4168cbae1fb36c5656ed19958da3cb8c19e2eaaf04fb4cb/oore-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74f0e0dae9148821c3ffccef7b444e59", "sha256": "9d19c13f10edf0f1889bc0a1cbdef45e29f97dd60594e012e058776242f8c160" }, "downloads": -1, "filename": "oore-0.2.1.tar.gz", "has_sig": false, "md5_digest": "74f0e0dae9148821c3ffccef7b444e59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3016, "upload_time": "2015-01-08T16:33:36", "url": "https://files.pythonhosted.org/packages/7e/bf/7a71d20df36ae0f697c0f9ddbee6e55b8af8338422598b28b15193ee4091/oore-0.2.1.tar.gz" } ] }