Skip to main content

ietf-reviewtool

This is a simple Python 3 tool to download and review IETF documents, such as Internet-Drafts or RFCs, and comes packaged as a single ietf-reviewtool script.

About

ietf-reviewtool offers several different review tools:

  • fetch downloads items (I-Ds, charters, RFCs, etc.) for review

  • fetch-agenda downloads all items on the agenda of the next IESG telechat for review

  • strip strips headers, footers and pagination from items, similar to the earlier rfcstrip tool

  • review extracts inline reviews from the indicated items and formats them for sharing by email or submission to the IETF datatracker, with some functionality that is similar to the earlier idcomments tool

This is a work in progress. Additional functionality will be added over time, so there is a chance this documentation only covers a subset of what the actual tool offers. You can get command line help on the various tools by passing --help to ietf-reviewtool and its sub-tools.

Installation

You can install this via PyPI:

pip install ietf-reviewtool

Usage

An example workflow of the tool is as follows.

Downloading items

You first download the item for review:

ietf-reviewtool fetch rfc1925.txt

This downloads the text version of RFC1925 into a text file named rfc1925.txt and (by default) performs a strip operation on the file.

You will then open the stripped rfc1925.txt for review in your preferred text editor.

Reviewing

You can flag issues of three different severity levels, namely, "discuss", "comment" and "nit". (These levels are inspired by the IESG review process.)

In order to flag an issue of a given severity level, enter a new line at an appropriate location in the document that reads DISCUSS:, COMMENT: or NIT:.

Inline issues

Using rfc1925.txt as an example and using *** to indicate the added review content, you can flag an "inline" issue like this:

2. The Fundamental Truths

   (1)  It Has To Work.

***COMMENT: Well, duh.***

After saving the changed rfc1925.txt, you can then extract a formatted review as:

Section 2, paragraph 2, comment:
Well, duh.

See below for how to extract a review.

Using DISCUSS: or NIT: instead of COMMENT: will change the severity of the issue, as appropriate.

Issues with context

It is possible quote part of the original document, to give the review some context, like this:

***COMMENT:***
   (3)  With sufficient thrust, pigs fly just fine. However, this is
***Can we stop picking on pigs or pigeons?***

This will produce the following review:

Section 2, paragraph 5, comment:
>    (3)  With sufficient thrust, pigs fly just fine. However, this is

Can we stop picking on pigs or pigeons?

Inline nits

To quickly flag some editing nits, such as spelling errors, you can simply edit the text directly, correcting the nit. For example, to flag an existing spelling error in rfc1925.txt (where "agglutinate" is misspelled as "aglutenate"), you would simply correct the word in the text:

   (5)  It is always possible to ***agglutinate*** multiple separate problems
        into a single complex interdependent solution. In most cases
        this is a bad idea.

When extracting the formatted review, such inline corrections are added to the "nits" section in "diff" format:

Section 2, paragraph 7, nit:
-    (5)  It is always possible to aglutenate multiple separate problems
-                                       ^
+    (5)  It is always possible to agglutinate multiple separate problems
+                                    +   ^

Extracting the review

After editing a source file, you can extract a formatted review with:

ietf-reviewtool review rfc1925.txt

With the given example, this would result in the following output:

-------------------------------------------------------------------------
COMMENT
-------------------------------------------------------------------------
Section 2, paragraph 2, comment:
Well, duh.

Section 2, paragraph 5, comment:
>    (3)  With sufficient thrust, pigs fly just fine. However, this is

Can we not always pick on pigs or pigeons?

-------------------------------------------------------------------------
NIT
-------------------------------------------------------------------------
Section 2, paragraph 7, nit:
-    (5)  It is always possible to aglutenate multiple separate problems
-                                       ^
+    (5)  It is always possible to agglutinate multiple separate problems
+                                    +   ^

Configuration File

You can persist settings in a configuration file instead of passing them on the command line every time. The tool looks for a configuration file at:

  • macOS: ~/Library/Application Support/ietf-reviewtool/config
  • Linux: ~/.config/ietf-reviewtool/config (or $XDG_CONFIG_HOME/ietf-reviewtool/config)
  • Windows: C:\Users\<user>\AppData\Local\ietf-reviewtool\config

You can also specify a custom configuration file with --config <path>.

The configuration file uses configobj format. Use [global] for options that apply to all commands, and subcommand-specific sections like [review] for subcommand options. Option names match the CLI flags:

[global]
verbose = 1
width = 100
datatracker = 'https://datatracker.ietf.org/'

[review]
github-id = '@yourusername'
role = 'AD'
check-grammar = False
grammar-skip-rules = 'WHITESPACE_RULE,EN_QUOTES'

[fetch]
strip = True
fetch-xml = False

[fetch-agenda]
make-directory = True
save-agenda = True

Command-line arguments override configuration file values, which override defaults.

Acknowledgments

The ideas for some of these tools came from some of Henrik Levkowetz's earlier bash scripts. In the case of the strip tool, most of the original regular expressions were taken from his rfcstrip awk script.

Metadata

Release files for ietf-reviewtool 0.7.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 ietf-reviewtool 0.7.0
File Size Uploaded Provenance Actions
ietf_reviewtool-0.7.0.tar.gz 127.0 kB Without provenance Details for ietf_reviewtool-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ietf-reviewtool 0.7.0
File Interpreter ABI Platform Actions
ietf_reviewtool-0.7.0-py3-none-any.whl Python 3 none any Details for ietf_reviewtool-0.7.0-py3-none-any.whl

Total release size: 184.2 kB

Release files / ietf_reviewtool-0.7.0.tar.gz

Download URL ietf_reviewtool-0.7.0.tar.gz
Size 127.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5c91133ba173083aba231dd6978efce5d1cf24a424d72c988d0cbd738b692bf8
BLAKE2b-256 checksum
How to use checksums
bc566eef676fc058c8d5145d9d38396c999fc057c9ae46c4aee3f9092e34737f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ietf_reviewtool-0.7.0-py3-none-any.whl

Download URL ietf_reviewtool-0.7.0-py3-none-any.whl
Size 57.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f102422c4db8383c9b95cd6c5f5fbd7fb6a2dcb3a4a046c5f9f1dd2182629b05
BLAKE2b-256 checksum
How to use checksums
a73718c0ae391d90978852f8ee4f740fe387485fa07425214b45571cacb450b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ietf-reviewtool 0.7.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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