All Projects → joshy → striprtf

joshy / striprtf

Licence: BSD-3-Clause License
Stripping rtf to plain old text

Programming Languages

Rich Text Format
576 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to striprtf

unrtf
Wrapper for 'unrtf' utility to extract text from RTF documents
Stars: ✭ 14 (-75%)
Mutual labels:  rtf
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (+19.64%)
Mutual labels:  rtf
plaintext-everything
📝 A list of tools and articles helpful for keeping everything under plaintext.
Stars: ✭ 100 (+78.57%)
Mutual labels:  plaintext
compressed rtf
Compressed Rich Text Format (RTF) compression and decompression in Python
Stars: ✭ 22 (-60.71%)
Mutual labels:  rtf
vscode-language-rtf
RTF Language Extension for Visual Studio Code
Stars: ✭ 17 (-69.64%)
Mutual labels:  rtf
highlight
Source code to formatted text converter
Stars: ✭ 44 (-21.43%)
Mutual labels:  rtf
Oletools
oletools - python tools to analyze MS OLE2 files (Structured Storage, Compound File Binary Format) and MS Office documents, for malware analysis, forensics and debugging.
Stars: ✭ 1,848 (+3200%)
Mutual labels:  rtf
shadowsocks-libev-nocrypto
libev port of shadowsocks. In this fork, encryption is optional!
Stars: ✭ 24 (-57.14%)
Mutual labels:  plaintext
hyperdraft
Turn your notes into a website.
Stars: ✭ 59 (+5.36%)
Mutual labels:  plaintext
leaf
Lightweight, self-hosted task tracking
Stars: ✭ 42 (-25%)
Mutual labels:  plaintext
telegram-backup-to-txt
Tool to dump telegram into text files for quick search (e.g. with grep)
Stars: ✭ 22 (-60.71%)
Mutual labels:  plaintext
ledger2beancount
Ledger to Beancount text-based converter
Stars: ✭ 63 (+12.5%)
Mutual labels:  plaintext
rtf-html-php
RTF to HTML converter in PHP
Stars: ✭ 88 (+57.14%)
Mutual labels:  rtf
documentspark
💖 DocumentSpark - Simple secure document viewing server. Converts a document to a picture of its pages. Content disarm and reconstruction. CDR. Formerly p2. The CDR solution for ViewFinder remote browser.
Stars: ✭ 211 (+276.79%)
Mutual labels:  rtf
RtfPipe
Library for processing rich-text format (RTF) streams
Stars: ✭ 83 (+48.21%)
Mutual labels:  rtf
arrow-finder
These docs help you to find and use arrows you need more quickly
Stars: ✭ 24 (-57.14%)
Mutual labels:  rtf
rtfraptor
Extract OLEv1 objects from RTF files by instrumenting Word
Stars: ✭ 50 (-10.71%)
Mutual labels:  rtf
doi2bib
📝 Easily convert Digital Object Identifier (DOI) and Uniform Resource Locator (URL) to BibTeX and DOI to plain text.
Stars: ✭ 28 (-50%)
Mutual labels:  plaintext
Wedge
可配置的小说下载及电子书生成工具
Stars: ✭ 62 (+10.71%)
Mutual labels:  rtf
jot
Command-line note-taking for minimalists
Stars: ✭ 24 (-57.14%)
Mutual labels:  plaintext

striprtf

Build status

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

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 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

  • pip install twine

Run commands

python setup.py sdist bdist_wheel
twine upload -r testpypi dist/*
twine upload -r pypi dist/*
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].