https://github.com/pharmaverse/rtflite
Lightweight RTF composer for Python. Specializes in precise formatting of production-quality tables and figures.
https://github.com/pharmaverse/rtflite
clinical-trials ectd pharmaverse reporting rtf
Last synced: 11 days ago
JSON representation
Lightweight RTF composer for Python. Specializes in precise formatting of production-quality tables and figures.
- Host: GitHub
- URL: https://github.com/pharmaverse/rtflite
- Owner: pharmaverse
- License: mit
- Created: 2025-01-29T14:47:12.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-05-07T05:03:50.000Z (8 months ago)
- Last Synced: 2025-06-28T12:08:37.442Z (7 months ago)
- Topics: clinical-trials, ectd, pharmaverse, reporting, rtf
- Language: Python
- Homepage: https://pharmaverse.github.io/rtflite/
- Size: 2.24 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# rtflite 
[](https://pypi.org/project/rtflite/)

[](https://pharmaverse.org)
[](https://github.com/pharmaverse/rtflite/actions/workflows/ci-tests.yml)
[](https://github.com/pharmaverse/rtflite/actions/workflows/mypy.yml)
[](https://github.com/pharmaverse/rtflite/actions/workflows/ruff-check.yml)
[](https://pharmaverse.github.io/rtflite/)

Lightweight RTF composer for Python.
Specializes in precise formatting of production-quality tables and figures. Inspired by [r2rtf](https://merck.github.io/r2rtf/).
## Installation
You can install rtflite from PyPI:
```bash
pip install rtflite
```
Or install the development version from GitHub:
```bash
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:
```bash
pip install rtflite[docx]
```
To add rtflite as a dependency with DOCX support for projects using uv:
```bash
uv add rtflite --extra docx
```
For rtflite developers, sync all optional dependencies with:
```bash
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](https://pharmaverse.github.io/rtflite/articles/converter-setup/)
for detailed instructions.
## Contributing
We welcome contributions to rtflite. Please read the rtflite
[Contributing Guidelines](https://pharmaverse.github.io/rtflite/contributing/)
to get started.
All interactions within rtflite repositories and issue trackers should adhere to
the rtflite [Contributor Code of Conduct](https://github.com/pharmaverse/rtflite/blob/main/CODE_OF_CONDUCT.md).
## License
This project is licensed under the terms of the MIT license.