{ "info": { "author": "Hans Bering", "author_email": "hansi.b.github@moc.liamg", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Text Processing :: General", "Topic :: Utilities" ], "description": "rewrapped\n=========\n\n.. image:: https://travis-ci.org/hansi-b/rewrapped.svg?branch=master\n :target: https://travis-ci.org/hansi-b/rewrapped\n\n.. image:: https://codecov.io/gh/hansi-b/rewrapped/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/hansi-b/rewrapped\n\n.. image:: https://badge.fury.io/py/rewrapped.svg\n :target: https://badge.fury.io/py/rewrapped\n\nFor the time being, more documentation is at\n`this project's github pages `_.\n\nrewrapped lets you wrap your regular expressions in classes\nwith match groups flexibly mapped to named fields.\n\nA simple example:\n\n.. code:: python\n\n from rewrapped import ReWrap, matched\n class Inventory(ReWrap):\n matchOn = \"([0-9]+)\\s+(\\S+)\"\n count = matched.g1.asInt\n item = matched.g2\n\nThis will yield match results which map the first match field\nto the integer ``count``, and the second to the string field ``item``:\n\n.. code:: python\n\n >>> i = Inventory.search(\"there are 45 oranges left\")\n >>> i.count\n 45\n >>> i.item\n 'oranges'\n >>> \n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hansi-b/rewrapped", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "rewrapped", "package_url": "https://pypi.org/project/rewrapped/", "platform": "", "project_url": "https://pypi.org/project/rewrapped/", "project_urls": { "Homepage": "https://github.com/hansi-b/rewrapped" }, "release_url": "https://pypi.org/project/rewrapped/0.5.0/", "requires_dist": null, "requires_python": "", "summary": "Class wrappers for regular expressions with proper fields for match groups.", "version": "0.5.0" }, "last_serial": 3618520, "releases": { "0.4.2": [ { "comment_text": "", "digests": { "md5": "c36b87c3b913dff893cec874c0b38f7a", "sha256": "02e4c7272198b11bd8a96d6165f300605212852a31cfab65965cad87bc2249a8" }, "downloads": -1, "filename": "rewrapped-0.4.2.tar.gz", "has_sig": false, "md5_digest": "c36b87c3b913dff893cec874c0b38f7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19764, "upload_time": "2018-02-20T20:27:29", "url": "https://files.pythonhosted.org/packages/a6/58/dd9a2279041ea266e24aca2cbc3a0e2ed91d648adccd4f13fd913721f6e9/rewrapped-0.4.2.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "a19dec6335e630affac4a91139274058", "sha256": "ba70a42c4e14b2728a4c507b070089edcc48acb733ec42cc4b19a4ef73c887a4" }, "downloads": -1, "filename": "rewrapped-0.5.0.tar.gz", "has_sig": false, "md5_digest": "a19dec6335e630affac4a91139274058", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20453, "upload_time": "2018-02-26T19:45:42", "url": "https://files.pythonhosted.org/packages/79/a9/cb8fd8f910396aa2fb35cd3f2aab932245a057f3179584f3d5d16d4d8aed/rewrapped-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a19dec6335e630affac4a91139274058", "sha256": "ba70a42c4e14b2728a4c507b070089edcc48acb733ec42cc4b19a4ef73c887a4" }, "downloads": -1, "filename": "rewrapped-0.5.0.tar.gz", "has_sig": false, "md5_digest": "a19dec6335e630affac4a91139274058", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20453, "upload_time": "2018-02-26T19:45:42", "url": "https://files.pythonhosted.org/packages/79/a9/cb8fd8f910396aa2fb35cd3f2aab932245a057f3179584f3d5d16d4d8aed/rewrapped-0.5.0.tar.gz" } ] }