Skip to main content

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).

discord.parse_discord requires Inflect to run.

Project details


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.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redocparse-0.1.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file redocparse-0.1.1.tar.gz.

File metadata

  • Download URL: redocparse-0.1.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for redocparse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 751adb5969e93a0e3386c11f01360241c64ffdbe9c3deac4dfdd98e714962704
MD5 8f4b18235261dd6184a023aaaf385eb5
BLAKE2b-256 4f2c652927837d09da5bcbf7f3ad8948cfea1f76fb6c0956d782eec4f1cf64dd

See more details on using hashes here.

File details

Details for the file redocparse-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: redocparse-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for redocparse-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3df8eca4b95fe12c7e6135b19725458df8e1a3f9ff96fc11cd1e97f3ebcf06b0
MD5 336c69a85c5fce14bc65a390b76dff8b
BLAKE2b-256 62e738cba0b12912eb1bace276d8886607118100eb00b8bf96a34ee0216e69d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page