Show HN: Kreuzberg – Modern async Python library for document text extraction https://ift.tt/ZMNIc9i

Show HN: Kreuzberg – Modern async Python library for document text extraction I'm excited to showcase Kreuzberg! Kreuzberg is a modern Python library built from the ground up with async/await, type hints, and optimized I/O handling. It provides a unified interface for extracting text from documents (PDFs, images, office files) without external API dependencies. Key technical features: - Built with modern Python best practices (async/await, type hints, functional-first) - Optimized async I/O with anyio for multi-loop compatibility - Smart worker process pool for CPU-bound tasks (OCR, doc conversion) - Efficient batch processing with concurrent extractions - Clean error handling with context-rich exceptions I built this after struggling with existing solutions that were either synchronous-only, required complex deployments, or had poor async support. The goal was to create something that works well in modern async Python applications, can be easily dockerized or used in serverless contexts, and relies only on permissive OSS. Key advantages over alternatives: - True async support with optimized I/O - Minimal dependencies (much smaller than alternatives) - Perfect for serverless and async web apps - Local processing without API calls - Built for modern Python codebases with rigorous typing and testing I Would love feedback! The library is MIT licensed and open to contributions. Here is the repo: https://ift.tt/nmZWA6B Staring is caring https://ift.tt/nmZWA6B February 15, 2025 at 12:07AM

No comments:

Show HN: Wake – AI Motivation Quotes iOS app. [Lifetime subscription giveaway] https://ift.tt/SvtF4nI

Show HN: Wake – AI Motivation Quotes iOS app. [Lifetime subscription giveaway] Hello everyone, Given the challenging times, inflation, caree...