Skip to main content
IETF RFC2HTML

Release License PyPI - Version PyPI - Status PyPI - Format

Htmlizing IETF Text Documents

Usage

This module contains one single function, markup(text) which adds HTML markup to what is assumed to be an IETF document (usually an Internet-Draft or an RFC):

from rfc2html import markup
with open('rfc3344.txt') as file:
    text = file.read()
html = markup(text)

History

As a historic artifact of being a document series which was started at the time when the easiest way of distributing a Request For Comments was to type it up on a typewriter and mimeographing it, RFCs and Internet-Drafts before RFC 8650 were published as plaintext documents with a maximum line length of 72 characters. Some Internet-Drafts are still created only in this form.

This format isn't particularly appropriate in a web-centric world, howerver, so starting in 2002, Henrik Levkowetz started using scripts to convert the plaintext documents into HTML documents with the same look-and-feel as the plaintext originals, but with internal and external HTML links in order to facilitate browsing.

Henrik served the resulting documents at tools.ietf.org starting in 2004. These are now served from the IETF Datatracker.

This module began as a packaging of the htmlization code from version 1.113 of the htmlizing script.

Download files

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

Source Distribution

rfc2html-2.0.2.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rfc2html-2.0.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file rfc2html-2.0.2.tar.gz.

File metadata

  • Download URL: rfc2html-2.0.2.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for rfc2html-2.0.2.tar.gz
Algorithm Hash digest
SHA256 341861f97ac068375c7d09db6afa44ec20b183263134f010a845d1f0f396676a
MD5 db55bc1cf19f34a2a7506737005c2358
BLAKE2b-256 b856e72868710d68f2ff046fc352ce3ca0f588e260a25e4964405c7739e6d74c

See more details on using hashes here.

File details

Details for the file rfc2html-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: rfc2html-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for rfc2html-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2026228de9f1094f6879ccf3a37a79c50a3f08124a055055b355f80153db1d11
MD5 6e5e64ab6f8d625b26aa5582a3700d6c
BLAKE2b-256 7ef2566402801aeeb9b3cb465e4f1dfdb3dc6c7d5d76813e3b3f60eb52ffb69b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page