Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
rfc2xml-0.1.1-py3-none-any.whl (14.8 kB) Copy SHA256 hash SHA256 Wheel py3
rfc2xml-0.1.1.tar.gz (7.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page