Skip to main content

Tool to process an RFC or Internet Standard into XML. Structure can also be accessed directly within a seperate Python project.

Project description

rfc2xml

Tool to process an RFC or Internet Standard into XML. Structure can also be accessed directly within a seperate Python project.

Note that this is not a general purpose tool and contains some restrictions. This is currently really slow. This is due partly to to overhead from Python, the parsing library and some inefficient parser grammar.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rfc2xml, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size rfc2xml-0.1.2-py3.7.egg (37.6 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size rfc2xml-0.1.2-py3-none-any.whl (17.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rfc2xml-0.1.2.tar.gz (10.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page