$npx skillfedfor your agent

rtfparse

Tool to parse Microsoft Rich Text Format (RTF)

With conditionsPyPI UtilitiesReleased Jul 2025307.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — rtfparse-0.9.5-py3-none-any.whl
v0.9.5 · released 2025-07-08 · Python >=3.10 · 4 runtime deps: argcomplete, compressed-rtf, extract-msg, provide-dir

Yes, if you need to extract HTML from Outlook emails or parse RTF documents. The library is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, maintenance is aging—the last release was over a year ago—so consider whether you need active support or can tolerate a stable but slowly-evolving codebase.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction: pure Python wheel with four runtime dependencies (argcomplete, compressed-rtf, extract-msg, provide-dir).
  • Maintenance status is aging—last release was 402 days ago, though the repository remains active with a recent commit on 2025-09-10.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice in distributions.

last release 2025-07-08 (402 days) · last repo commit 2025-09-10 · 20 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 307,054 downloads/mo, #7,781 on PyPI

Verify before relying

pip install rtfparse

from rtfparse.parser import Rtf_Parser
from rtfparse.renderers.html_decapsulator import HTML_Decapsulator

parser = Rtf_Parser(rtf_path="document.rtf")
parsed = parser.parse_file()
renderer = HTML_Decapsulator()
with open("output.html", "w") as f:
    renderer.render(parsed, f)
  • Whether the HTML_Decapsulator renderer handles all RTF variants and edge cases reliably in production.
  • Performance characteristics when parsing large or complex RTF documents.
  • Whether custom renderers beyond HTML_Decapsulator are documented or supported.
Same gist for agents: .md · .json

What it is and what it does

rtfparse is a Python library that reads Microsoft RTF documents and builds an in-memory object tree representing their structure. It then passes that tree to a renderer—currently only HTML_Decapsulator is provided, which extracts HTML that has been embedded within RTF (a common pattern in Outlook email messages). The library also handles RTF decompression, which Outlook uses to reduce file size.

You can use it as a command-line tool or import it into your own Python code. The CLI writes logs to ~/rtfparse/ and supports workflows like extracting HTML from .msg files, decompressing RTF, and saving attachments. The library depends on extract-msg to read Outlook message files and compressed-rtf to decompress them when needed.

Use it for

  • Extract HTML content from RTF-formatted email messages saved by Microsoft Outlook.
  • Decompress RTF files that have been compressed by Outlook or other Microsoft applications.
  • Parse RTF documents programmatically and render them to HTML for web display or archival.
  • Batch-process .msg files to recover embedded HTML and attachments from email archives.
  • Build custom renderers for RTF documents by extending the parser's tree structure.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to extract HTML from Outlook emails or parse RTF documents.

The library is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, maintenance is aging—the last release was over a year ago—so consider whether you need active support or can tolerate a stable but slowly-evolving codebase.

Install

rtfparse on PyPI

Before you install

Low friction: pure Python wheel with four runtime dependencies (argcomplete, compressed-rtf, extract-msg, provide-dir). Maintenance status is aging—last release was 402 days ago, though the repository remains active with a recent commit on 2025-09-10.

Requires Python 3.10 or later.

License in practice

MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice in distributions.

Quickstart

pip install rtfparse

from rtfparse.parser import Rtf_Parser
from rtfparse.renderers.html_decapsulator import HTML_Decapsulator

parser = Rtf_Parser(rtf_path="document.rtf")
parsed = parser.parse_file()
renderer = HTML_Decapsulator()
with open("output.html", "w") as f:
    renderer.render(parsed, f)

Verify before relying

  • Whether the HTML_Decapsulator renderer handles all RTF variants and edge cases reliably in production.
  • Performance characteristics when parsing large or complex RTF documents.
  • Whether custom renderers beyond HTML_Decapsulator are documented or supported.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
argcompletecompressed-rtfextract-msgprovide-dir
MaintenanceAging 402 days since the last release
Last repo commit
First released
Downloads307,054 / month, #7,781 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Topic :: Software Development :: TestingTopic :: Utilities

Evidence: rtfparse-0.9.5-py3-none-any.whl

Tags

Capabilities
rtf parserextract html from rtfoutlook msg to htmlrtf document parsingdecompress rtfrtf rendererparse rich text format
Topics
email-extractionrtf-parsingoutlook-msg
PyPI keywords
parsertf

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “rtf parser”

  • rtfparseParses Microsoft Rich Text Format (RTF) documents into an in-memory…
  • striprtfConverts Rich Text Format (RTF) files to plain text, stripping…
  • RTFDEExtracts encapsulated HTML and plain text content from RTF bodies in…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also compressed-rtf · RTFDE · PyRTF3 · extract-msg · striprtf · msg-parser · rich-text-renderer · tnefparse · python-oxmsg · rich-rst