Convert text-format RFCs and Internet-Drafts to html
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rfc2html-2.1.0.tar.gz.
File metadata
- Download URL: rfc2html-2.1.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e979a2521402910fdc4f60c1485c5f113dd95a2a4594fd2b7e4b09c985a5da6
|
|
| MD5 |
57c0a2a246a2ecac15bb5bb29780f7da
|
|
| BLAKE2b-256 |
5e5be48c5e124d5b78e191511db17113fbd5875f353987ce0205f8495fca2b72
|
Provenance
The following attestation bundles were made for rfc2html-2.1.0.tar.gz:
Publisher:
pypi-publish.yml on ietf-tools/rfc2html
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rfc2html-2.1.0.tar.gz -
Subject digest:
0e979a2521402910fdc4f60c1485c5f113dd95a2a4594fd2b7e4b09c985a5da6 - Sigstore transparency entry: 1754268579
- Sigstore integration time:
-
Permalink:
ietf-tools/rfc2html@4ef20e40dd83b9e58bdeaf5df8c1ccbc953185a9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ietf-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@4ef20e40dd83b9e58bdeaf5df8c1ccbc953185a9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file rfc2html-2.1.0-py3-none-any.whl.
File metadata
- Download URL: rfc2html-2.1.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95e6bcb43ca43fb85855569d7e15b772aa45b17dc785f6c6ac2ac70a05bbf7dd
|
|
| MD5 |
bc11f734de1189efe73c61ef5f429d1b
|
|
| BLAKE2b-256 |
da1baa855b61c0275b9f3ddffe858cb7e5e124adb1ac61a647192a6f4d773bfe
|
Provenance
The following attestation bundles were made for rfc2html-2.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on ietf-tools/rfc2html
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rfc2html-2.1.0-py3-none-any.whl -
Subject digest:
95e6bcb43ca43fb85855569d7e15b772aa45b17dc785f6c6ac2ac70a05bbf7dd - Sigstore transparency entry: 1754268620
- Sigstore integration time:
-
Permalink:
ietf-tools/rfc2html@4ef20e40dd83b9e58bdeaf5df8c1ccbc953185a9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ietf-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@4ef20e40dd83b9e58bdeaf5df8c1ccbc953185a9 -
Trigger Event:
workflow_dispatch
-
Statement type: