Skip to main content
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)

This function can be used via the CLI:

$ rfc2html -v rfc3344.txt
rfc3344.txt.html

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.

Release files for rfc2html 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rfc2html 2.1.0
File Size Uploaded
rfc2html-2.1.0.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rfc2html 2.1.0
File Interpreter ABI Platform
rfc2html-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / rfc2html-2.1.0.tar.gz

Download URL rfc2html-2.1.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0e979a2521402910fdc4f60c1485c5f113dd95a2a4594fd2b7e4b09c985a5da6
BLAKE2b-256 checksum
How to use checksums
5e5be48c5e124d5b78e191511db17113fbd5875f353987ce0205f8495fca2b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.

Transparency log

Release files / rfc2html-2.1.0-py3-none-any.whl

Download URL rfc2html-2.1.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95e6bcb43ca43fb85855569d7e15b772aa45b17dc785f6c6ac2ac70a05bbf7dd
BLAKE2b-256 checksum
How to use checksums
da1baa855b61c0275b9f3ddffe858cb7e5e124adb1ac61a647192a6f4d773bfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.3

1 release file

2.0.2

2 release files

2.0.1

1 release file

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page