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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file rfc-tidy-0.1.2.tar.gz.

File metadata

  • Download URL: rfc-tidy-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for rfc-tidy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 92e4fd0c6dc12a4d5a9f92e7ba31384e24f529cc2dc0cdc4c1baa983edd34059
MD5 69a5ebce70f23119be7d10d768de443f
BLAKE2b-256 6d6eea6c72780b6cd18ff8e5688f4df91882afbf3c17d2f84e88191e0117c0d2

See more details on using hashes here.

File details

Details for the file rfc_tidy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rfc_tidy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for rfc_tidy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50e2b7d25d352a2fe9ea81d8c24d0d08e9410db5e4f66d617b99f667282cb4e7
MD5 2beba3d44fba08721e4c6800357ea69d
BLAKE2b-256 ff306f3fcb335dffc02625fd5acd65125782bf61a82ad7c7f939f10cdeece2e7

See more details on using hashes here.

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