Ruppell is a Python package to help in text extraction from documents.
Project description
Ruppell: powerful Python text extractor toolkit
What is it?
Ruppell is a Python wrapper to help in documents' text extraction.
Main Features
Here are just a few of the things that ruppell does well:
- Create datasets from multiple files.
- Extract documents' text (pdf, docx, jpeg, jpg, png).
- Create Pandas dataframe from documents' folder.
- Convert documents to .txt files
Where to get it
Binary installers for the latest released version are available at the Pypi.
pip install ruppell
Requisites
To run Ruppell you need
- Tesseract OCR
- Python >= 3.6
How to use
import ruppell
# Configure your documents language, defaults to eng if not specified!
ruppell.setup_language(language='eng')
# Extract text from pdf
text = ruppell.pdf_to_string(file_path='file_path.pdf')
# Extract text from docx
text = ruppell.docx_to_string(file_path='file_path.docx')
# Extract text from image
text = ruppell.image_to_string(file_path='file_path.jpeg')
# Create pandas dataframe from documents folder
dataframe = ruppell.folder_to_dataframe(folder_path='folder_path')
# Create dict from documents folder
dict_out = ruppell.folder_to_dict(folder_path='folder_path')
# Create .txt files from documents folder
# A folder ./out_{now_in_timestamp} will created in the same path of folder_path
path_to_out = ruppell.folder_to_txt(folder_path='folder_path')
Example
>>> import ruppell
>>> ruppell.image_to_string('image.png')
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer id bibendum sapien.'
Supported Languages
The language codes are ISO 639-2/B or ISO 639-2/T.
All languages codes here.
Contributing
If you think that we can do the Ruppell more powerful please contribute with this project. And let's improve it to help other developers.
Create a pull request or let's talk about something in issues. Thanks a lot.
Author
Jorge Melgarejo, melgarejo.colarte@gmail.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ruppell-1.0.1.tar.gz.
File metadata
- Download URL: ruppell-1.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12ddc712f9dbaab07a53bf15bc35f530843fa48904d262fc19d3efa03d653446
|
|
| MD5 |
9912214c376f6e6dfe7fe6f07c5e9006
|
|
| BLAKE2b-256 |
3dfde1133dcfb19e027fb617ecdd42144530916ad3d0d2ade2e2c9d1ba52b131
|
File details
Details for the file ruppell-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ruppell-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
602f7f7da05e525a1f7b959fbc13ac5c8e7e49b9ad844dde2246f6576c2bc7a6
|
|
| MD5 |
88831873acfdc3a682e118a52969dc03
|
|
| BLAKE2b-256 |
a4e64b6d44eacb80525f372eb27ee047d2df048f16d0ed779082c93618fee2bc
|