Skip to main content

Cleanup RFC XML

Project description

rfc-tidy

A simple tool that cleans up RFC XML.

Usage

Install from pypi with:

pip install --user rfc-tidy

Like black, rfc-tidy cannot be tuned. Feed XML into stdin, get XML from stdout (it also accepts the input file as the first argument).

rfc-tidy < draft-blah-blah-blah.xml > draft-tidied.xml

Features

Adds <bcp14> tags for your "MUST", "SHOULD", and "MAY" statements in text.

Removes extraneous XML, comments, and whitespace.

Indents elements consistently.

Replaces non-ASCII characters in text with XML numeric entities so that you don't miss them.

Sorts attributes by name.

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

rfc-tidy-0.1.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

rfc_tidy-0.1.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

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