Skip to main content

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

keytake_datareader-0.1.1.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keytake_datareader-0.1.1-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file keytake_datareader-0.1.1.tar.gz.

File metadata

  • Download URL: keytake_datareader-0.1.1.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

Hashes for keytake_datareader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a4638ba850ced695bfbf7637903a92d9adc24e272a1afeac625e974735a8c9b9
MD5 1e73823fb48cb0a7e71030d357d06354
BLAKE2b-256 55201aeabae4b315996465ce5960f32568c36a1ad778b0a6790c1efa87b8161a

See more details on using hashes here.

File details

Details for the file keytake_datareader-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for keytake_datareader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 984f1e3e9ce66d8bd95ce1dc4602002dc04d4f177c845a07e0093c70ac809c6a
MD5 9d806f165ab617e92b94419540d99d06
BLAKE2b-256 b4388a610aba5eb312ba7b8a99ef21c153583df119c53c49c11ee4f7a012ac17

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