PyRTF3
PyRTF - Rich Text Format Document Generation
What it is and what it does
PyRTF3 is a Python library for generating Rich Text Format documents programmatically. It provides classes to build RTF files with styled text, multiple sections, headers/footers, tables, and embedded PNG and JPG images. The library was designed to be reliable and fast with PyParsing as its only runtime dependency.
The package is in Beta status and has been abandoned since 2017-05-19, with no active maintenance or updates. It remains functional for basic RTF generation tasks but should be considered legacy software; users requiring modern document generation may want to evaluate actively maintained alternatives.
Use it for:
- Generate styled reports or documentation in RTF format from Python data or templates.
- Create multi-section documents with custom headers, footers, and page layouts programmatically.
- Build tables with formatted content and embed images into RTF files for distribution.
- Automate RTF document creation for systems that require Word-compatible output.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
PyRTF3 generates Rich Text Format (RTF) documents programmatically from Python, supporting styled text, multi-section layouts, tables, and embedded PNG/JPG images.
No, unless you have a specific legacy requirement to generate RTF files and cannot use a maintained alternative. The package is abandoned (last release 2017-05-19), offers no security or compatibility updates, and is licensed under copyleft GPL—which blocks use in proprietary projects. The low install friction and lack of known vulnerabilities do not offset the maintenance and licensing risks.
Install
pyrtf3 on PyPI
pip
pip install pyrtf3uv
uv add pyrtf3poetry
poetry add pyrtf3Installing PyRTF3
Before you install
Installation is straightforward with only PyParsing as a runtime dependency. However, the package is abandoned—last release was in May 2017—so expect no maintenance, bug fixes, or compatibility updates.
License in practice
Licensed under the GNU General Public License (GPL), a copyleft license. Any software that links or distributes PyRTF3 must also be released under compatible open-source terms; proprietary or closed-source projects cannot use it without legal risk.
Quickstart
pip install PyRTF3
from PyRTF3.Document import Document
from PyRTF3.Elements import Paragraph
doc = Document()
section = doc.AddSection()
section.AddParagraph('Hello, RTF world!')
doc.write(open('output.rtf', 'wb'))
Verify before relying
- Compatibility with modern Python versions and current RTF readers; last tested on older Word versions.
- Whether PyParsing dependency is actively used at runtime or is a legacy artifact.
- Actual usability of the package given its abandoned status since 2017-05-19.
Package facts
| License | http://www.gnu.org/licenses/gpl.html (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — PyParsing |
| Maintenance | abandoned — 3,374 days since the last release |
| First released | |
| Downloads | 232,923/month — #9,053 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: PyRTF3-0.47.5-py3-none-any.whl
Keywords: RTF, Rich Text, Rich Text Format, documentation, reports
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
striprtfConverts Rich Text Format (RTF) files to plain…
permissive · top 5,000 on PyPI
rtfparseParses Microsoft Rich Text Format (RTF)…
permissive · top 15,000 on PyPI
compressed-rtfCompresses and decompresses Rich Text Format…
permissive · top 5,000 on PyPI
pyth3Converts marked-up text between formats…
permissive · top 5,000 on PyPI
spire-docSpire.Doc creates, reads, modifies, and…
unclear · top 15,000 on PyPI
fpdfGenerates PDF documents from Python code,…
copyleft · top 5,000 on PyPI
rich-rstRenders reStructuredText documents as Rich…
permissive · top 1,000 on PyPI
html-for-docxConverts HTML content to Word documents…
permissive · top 15,000 on PyPI
richRich renders styled text, tables, progress…
permissive · top 100 on PyPI
adf-libadf_lib creates and manipulates Atlassian…
permissive · top 15,000 on PyPI