Skip to main content

rtflite

PyPI version Python versions pharmaverse rtflite badge CI tests Mypy check Ruff check Documentation License View Code Wiki

Lightweight RTF composer for Python.

Specializes in precise formatting of production-quality tables and figures. Inspired by r2rtf.

Installation

You can install rtflite from PyPI:

pip install rtflite

Or install the development version from GitHub:

git clone https://github.com/pharmaverse/rtflite.git
cd rtflite
python3 -m pip install -e .

Optional dependencies - DOCX support

Some features in rtflite require additional dependencies. To install rtflite with DOCX assembly support:

pip install rtflite[docx]

To add rtflite as a dependency with DOCX support for projects using uv:

uv add rtflite --extra docx

For rtflite developers, sync all optional dependencies with:

uv sync --all-extras

Optional dependencies - LibreOffice

rtflite can convert RTF documents to PDF and DOCX using LibreOffice. To enable this feature, install LibreOffice (free and open source, MPL license).

See the converter setup guide for detailed instructions.

Contributing

We welcome contributions to rtflite. Please read the rtflite Contributing Guidelines to get started.

All interactions within rtflite repositories and issue trackers should adhere to the rtflite Contributor Code of Conduct.

License

This project is licensed under the terms of the MIT license.

Release files for rtflite 2.6.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 rtflite 2.6.0
File Size Uploaded
rtflite-2.6.0.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for rtflite 2.6.0
File Interpreter ABI Platform
rtflite-2.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / rtflite-2.6.0.tar.gz

Download URL rtflite-2.6.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
549fd564efaa2f242d20a8ccdf6f0d2dbd5ce789f3ed1136b707d3b348541dba
BLAKE2b-256 checksum
How to use checksums
9aa12af47b975e4cadd9f0ac89440d79430b869e3c6485012f6745bceb4b0c78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rtflite-2.6.0-py3-none-any.whl

Download URL rtflite-2.6.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ed69ccd7bc8cee9a2cb6009fdbfa1d8b33373905179c9d8649a5c7f78e0efc68
BLAKE2b-256 checksum
How to use checksums
871815fef96b580f99974f3d509663ae480db955842318cd438a1c95e6783c73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

2.6.0 This release

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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