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 command ` 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.

Source Distribution

striprtf-0.0.8.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file striprtf-0.0.8.tar.gz.

File metadata

  • Download URL: striprtf-0.0.8.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for striprtf-0.0.8.tar.gz
Algorithm Hash digest
SHA256 af91974e5bd132982f5067d157872fd8ffa38b91a2cc993c5092791b54b73b95
MD5 27984e8cfbacaace821a123c2ad723dd
BLAKE2b-256 53440d8161a4e2073f0e27fc5614c5437a706fb2e25425cb4f99ee4035a028dc

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