Skip to main content

Lightweight RTF composer for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtflite-2.5.4.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtflite-2.5.4-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file rtflite-2.5.4.tar.gz.

File metadata

  • Download URL: rtflite-2.5.4.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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}

File hashes

Hashes for rtflite-2.5.4.tar.gz
Algorithm Hash digest
SHA256 9983a45ef09c4d86d7c62ecdd7488343aaf0777beadf560491c7d31243e70495
MD5 c4563ca75905c7e0291a4fd93ceb4f60
BLAKE2b-256 d4cdea85e8b797eca2c756b9b25dbd50b377e2736b04b4651f92c33e2e7f6b21

See more details on using hashes here.

File details

Details for the file rtflite-2.5.4-py3-none-any.whl.

File metadata

  • Download URL: rtflite-2.5.4-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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}

File hashes

Hashes for rtflite-2.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c25dd448f9fe027ed5339c057853d82c5fb31fee881c9d66a2f31db39c33996b
MD5 120cda3fb42eb58e72bdd4787e6a66ed
BLAKE2b-256 2f3a3dccb59c3288a2ec143e89c9b41494ddeb006115855fcbe646db1eb4af7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page