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://github.com/Goldziher/kreuzberg

Staring is caring


Comments URL: https://news.ycombinator.com/item?id=43057375

Points: 10

# Comments: 5

https://github.com/Goldziher/kreuzberg

Vytvořeno 9d | 15. 2. 2025 11:50:08


Chcete-li přidat komentář, přihlaste se

Ostatní příspěvky v této skupině

Show HN: RadiaCode – Python Library for RadiaCode-10x Radiation Detectors

Hi HN,

I want to show you my project: RadiaCode, a Python library to interface with RadiaCode-10x radiation detectors and spectrometers. With RadiaCode, you can:

- Collect real-time radiation

24. 2. 2025 13:40:37 | Hacker news
Show HN: I scrape Steam data every month and it's yours to download for free

Yeah, there's AI, but I added it because I found it easier to find answers I'm looking for. For the data scientists, you can download the CSV and go crazy. Would love to know what discoveries or l

24. 2. 2025 13:40:33 | Hacker news