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.3.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.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rtflite-2.5.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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.3.tar.gz
Algorithm Hash digest
SHA256 500ab708f966ac4dbedb3d7d577a129b3f5c128329e0e34067ed81cf1c575c7a
MD5 7e44050191128e5b896b8820f6633253
BLAKE2b-256 f442a6ae927739922cf5838e94bd6606337f38255d1a9583d482ed929b70e364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rtflite-2.5.3-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 54f96b790bef2e7b9a30d7c956b9a216ba66e4b7ddd1aa678e4021a969c0ed2d
MD5 7339475e53d1ce85c19c475b32eaaff5
BLAKE2b-256 13c617c35d3a4cfcfde4979200addd4373eb0d157da5b720195f2802f217b384

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