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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92e4fd0c6dc12a4d5a9f92e7ba31384e24f529cc2dc0cdc4c1baa983edd34059
|
|
| MD5 |
69a5ebce70f23119be7d10d768de443f
|
|
| BLAKE2b-256 |
6d6eea6c72780b6cd18ff8e5688f4df91882afbf3c17d2f84e88191e0117c0d2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50e2b7d25d352a2fe9ea81d8c24d0d08e9410db5e4f66d617b99f667282cb4e7
|
|
| MD5 |
2beba3d44fba08721e4c6800357ea69d
|
|
| BLAKE2b-256 |
ff306f3fcb335dffc02625fd5acd65125782bf61a82ad7c7f939f10cdeece2e7
|