A package for extracting and formatting content from various sources
Project description
DataReader
A Python package for extracting and formatting content from various sources including PDFs, URLs, videos, and audio files.
Features
- PDF processing with multiple backends (PyMuPDF, pypdf, markitdown)
- Web page content extraction
- Video content processing
- Audio transcription
- Markdown formatting
Installation
Basic Installation
pip install keytake-datareader
With Optional Dependencies
# For PDF processing
pip install "keytake-datareader[pdf]"
# For audio processing
pip install "keytake-datareader[audio]"
# For video processing
pip install "keytake-datareader[video]"
# For all features
pip install "keytake-datareader[all]"
Quick Start
from datareader import DataReader
# Process a PDF file
text = DataReader.read_pdf("document.pdf")
# Process a URL
web_content = DataReader.read_url("https://example.com")
# Process a video file
transcript = DataReader.read_video("video.mp4")
# Process an audio file
audio_text = DataReader.read_audio("audio.mp3")
# Save as markdown
DataReader.save_markdown(text, "output.md")
Command Line Usage
The package provides command-line scripts for batch processing:
# Process PDFs
./run_pdf.sh
# Process URLs
./run_url.sh
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 keytake_datareader-0.1.2.tar.gz.
File metadata
- Download URL: keytake_datareader-0.1.2.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8e396759e2212228fa15a08d769fcd53ff1bda84599460f5a73353d5d916415
|
|
| MD5 |
4c76a4a5f4985d24bd444ec0bd1d3b22
|
|
| BLAKE2b-256 |
7f7236152a213541a01a240bfec340c33cde98afd0be76a99a6017897a37ea9d
|
File details
Details for the file keytake_datareader-0.1.2-py3-none-any.whl.
File metadata
- Download URL: keytake_datareader-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e007cc47e10d78da6a2a710f22415fd270fab3e822dcf8c3f27bffdffe20926c
|
|
| MD5 |
4bd0dc7724339ff78d5f4c989e8e60de
|
|
| BLAKE2b-256 |
b2236c51b3979c189a45a9ecad79431ec587fd290420035051843e2d3abbc1a9
|