# ReDocparse
ReDocparse is a small library that aims to make transforming large amounts of text easier.
It introduces a `redocparse.matcher.Matcher` class that matches a chunk of text via regex,
runs the matched text through an optional callback function,
then sends the matched text through each of its nested Matchers.
In short, it's a more ergonomic way to use regex recursively.
## Discord
Included in this repository is src/discord, which is an application of ReDocparse aimed at creating Python dataclasses from the Discord API Documentation (specifically for use with [DubiousDiscord](https://github.com/lapraswastaken/dubiousdiscord)).
discord.parse_discord requires [Inflect](https://github.com/jaraco/inflect) to run.
Raw data
{
"_id": null,
"home_page": "",
"name": "redocparse",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "docparse,documentation,regex,recursive regex",
"author": "lapras",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/4f/2c/652927837d09da5bcbf7f3ad8948cfea1f76fb6c0956d782eec4f1cf64dd/redocparse-0.1.1.tar.gz",
"platform": null,
"description": "\n# ReDocparse\n\nReDocparse is a small library that aims to make transforming large amounts of text easier.\n\nIt introduces a `redocparse.matcher.Matcher` class that matches a chunk of text via regex,\n runs the matched text through an optional callback function,\n then sends the matched text through each of its nested Matchers.\n\nIn short, it's a more ergonomic way to use regex recursively.\n\n## Discord\n\nIncluded in this repository is src/discord, which is an application of ReDocparse aimed at creating Python dataclasses from the Discord API Documentation (specifically for use with [DubiousDiscord](https://github.com/lapraswastaken/dubiousdiscord)).\n\ndiscord.parse_discord requires [Inflect](https://github.com/jaraco/inflect) to run.\n",
"bugtrack_url": null,
"license": "",
"summary": "An ergonomic way to use regex recursively.",
"version": "0.1.1",
"project_urls": null,
"split_keywords": [
"docparse",
"documentation",
"regex",
"recursive regex"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "62e738cba0b12912eb1bace276d8886607118100eb00b8bf96a34ee0216e69d7",
"md5": "336c69a85c5fce14bc65a390b76dff8b",
"sha256": "3df8eca4b95fe12c7e6135b19725458df8e1a3f9ff96fc11cd1e97f3ebcf06b0"
},
"downloads": -1,
"filename": "redocparse-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "336c69a85c5fce14bc65a390b76dff8b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 20234,
"upload_time": "2023-09-12T08:55:47",
"upload_time_iso_8601": "2023-09-12T08:55:47.310547Z",
"url": "https://files.pythonhosted.org/packages/62/e7/38cba0b12912eb1bace276d8886607118100eb00b8bf96a34ee0216e69d7/redocparse-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4f2c652927837d09da5bcbf7f3ad8948cfea1f76fb6c0956d782eec4f1cf64dd",
"md5": "8f4b18235261dd6184a023aaaf385eb5",
"sha256": "751adb5969e93a0e3386c11f01360241c64ffdbe9c3deac4dfdd98e714962704"
},
"downloads": -1,
"filename": "redocparse-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "8f4b18235261dd6184a023aaaf385eb5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 19147,
"upload_time": "2023-09-12T08:55:48",
"upload_time_iso_8601": "2023-09-12T08:55:48.326253Z",
"url": "https://files.pythonhosted.org/packages/4f/2c/652927837d09da5bcbf7f3ad8948cfea1f76fb6c0956d782eec4f1cf64dd/redocparse-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-12 08:55:48",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "redocparse"
}