An ergonomic way to use regex recursively.
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redocparse-0.1.dev1.tar.gz
(19.2 kB
view hashes)
Built Distribution
Close
Hashes for redocparse-0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5636c95cb5522f2b2a826b70a3f18f122a0120f05ae2c8ea1c405f68ccfb6d |
|
MD5 | dbf5be8ef61a91fcb75ab4785a08b35e |
|
BLAKE2b-256 | 5510ba78fb7b806805b498446a3412943361a5ae247d585169a2f99a7de4e04d |