Tool to process an RFC or Internet Standard into XML or a DOM structure for document processing.
Project description
rfc2xml
Tool to process an RFC or Internet Standard into XML or a DOM structure for document processing.
Note that this is not a general purpose tool and contains some restrictions.
Usage
python -m rfc2xml <filename> [--suppress-result]
Examples
Download an Internet Standard to process:
wget https://www.ietf.org/id/draft-ietf-quic-transport-19.txt
The tool can then be run on that file using the following command (in the top level src directory):
python -m rfc2xml draft-ietf-quic-transport-19.txt
Import
The tool can also be imported into a different python script and used there:
from rfc2xml import Rfc2Xml
with open("draft-ietf-quic-transport-19.txt") as fp:
contents = fp.read()
dom = Rfc2Xml.parse(contents)
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
rfc2xml-0.1.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
rfc2xml-0.1.0-py3-none-any.whl
(14.7 kB
view hashes)