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.

Source Distribution

rfc2xml-0.1.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distributions

rfc2xml-0.1.2-py3.7.egg (37.6 kB view details)

Uploaded Source

rfc2xml-0.1.2-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file rfc2xml-0.1.2.tar.gz.

File metadata

  • Download URL: rfc2xml-0.1.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for rfc2xml-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1579c27ca1bac309caffd61d0540e732df1797bee3dcb4fc0d028ffb998319a7
MD5 dab75c331d33641f63c653be6791648d
BLAKE2b-256 9d8e936ea6b5d8fb4b36835573c13897b79e976a58642f7f87c75696666979e5

See more details on using hashes here.

File details

Details for the file rfc2xml-0.1.2-py3.7.egg.

File metadata

  • Download URL: rfc2xml-0.1.2-py3.7.egg
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for rfc2xml-0.1.2-py3.7.egg
Algorithm Hash digest
SHA256 f9167ae162b90e07a864af5a0d0bcc054c4b5cd764517fbfba5eda8c7f3d7358
MD5 0ef6fa5ced148dd6cf56943654959cdf
BLAKE2b-256 ce40cef419708cb34660945c7d26136daa8a082b0c59d01460479af78662565d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rfc2xml-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for rfc2xml-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c02d323a047f5ae2c9e69bf1635b861aeb6a76914573b6e3adccc6e44ab5299
MD5 745e6c5875918e22e02a1f35b602ed3e
BLAKE2b-256 5216d0d1941dcf90e120c05af93d3b9e0d1c8ad9531e5c5016d1455b61f051cf

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