Allyin Libraries
Multimodal2text is a Python library that extracts text from various file formats including PDFs, DOCX, XLSX, PPTX, images, HTML, and audio.
Installation
First, ensure that openai-whisper is installed (used for audio transcription):
pip install git+https://github.com/openai/whisper.git
Then install Allyin:
pip install allyin
Note: You may need to install system dependencies like
ffmpegfor Whisper andtesseractfor OCR.
Usage
Import
from allyin.multimodal2text import extract_text
Supported File Types
| Format | Description |
|---|---|
.pdf |
Extracts text from PDFs |
.docx |
Extracts text from Word |
.xlsx |
Extracts text from Excel |
.pptx |
Extracts text from Slides |
.png/jpg |
OCR-based text extraction |
.html |
Extracts visible content |
.mp3/.wav |
Transcribes audio |
Example
from allyin.multimodal2text import extract_text
result = extract_text("/path/to/your/file.pdf")
print(result["text"])
License
MIT
Release files for allyin 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| allyin-0.1.4.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| allyin-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.3 kB
Release files / allyin-0.1.4.tar.gz
| Download URL | allyin-0.1.4.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2c1e937a2196fdc634cea097ce0bc2ad854417033be75f2eb6e3925d5e27534
|
|
BLAKE2b-256 checksum How to use checksums |
c189112338d01368d14748aded2363beed4c0fd1449814eba6086f0d39b16b1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / allyin-0.1.4-py3-none-any.whl
| Download URL | allyin-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f189a32a1220fcfe7be0426c5f158b2334c62dc7167ac345713f96b7169102
|
|
BLAKE2b-256 checksum How to use checksums |
860d94c509cac1395bd785b411e53977aa912fd4e03e039f8124c0f3fa5a44d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|