All formats

RTF libraries for Python

For other RTF tasks in Python: rtfde and rtfparse extract HTML encapsulated by Outlook from RTF email bodies; Pandoc (via pypandoc) converts RTF to Markdown, HTML or DOCX; and LibreOffice (soffice --headless --convert-to) converts with full formatting. There’s no maintained pure Python library that writes RTF with an object model; generating RTF text directly is common.