Skip to main content

A simple library to convert rtf to text

Project description

# striprtf [![Build Status](https://api.travis-ci.org/joshy/striprtf.svg?branch=master)](https://travis-ci.org/joshy/striprtf)

## Purpose This is a simple library to convert rtf files to python strings. A lot of medical documents are written in rtf format which is not ideal for parsing and further processing. This library converts it to plain old text.

## How to use `python from striprtf.striprtf import rtf_to_text rtf = "some rtf encoded string" text = rtf_to_text(rtf) print(text) `

## How to use online If you don’t want to install, there is also an online version available at https://striprtf.dev

## History [Pyth](https://github.com/brendonh/pyth) was not working for the rtf files I had. The next best thing was this gist: https://gist.github.com/gilsondev/7c1d2d753ddb522e7bc22511cfb08676

Very few additions where made, e.g. better formatting of tables.

## Pushing to PyPi Run commands ` python setup.py sdist bdist_wheel python setup.py sdist upload -r pypi `

Project details


Download files

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

Files for striprtf, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size striprtf-0.0.10.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page