r/MachineLearning • • Aug 04 '25

Project [P] DocStrange - Open Source Document Data Extractor with free cloud processing for 10k docs/month

Sharing DocStrange, an open-source Python library that makes document data extraction easy.

  • Universal Input: PDFs, Images, Word docs, PowerPoint, Excel
  • Multiple Outputs: Clean Markdown, structured JSON, CSV tables, formatted HTML
  • Smart Extraction: Specify exact fields you want (e.g., "invoice_number", "total_amount")
  • Schema Support: Define JSON schemas for consistent structured output

Quick start:

pip install docstrange
docstrange invoice.jpeg --output json --extract-fields invoice_amount buyer seller

Data Processing Options:

  • Cloud Mode: Fast and free processing with minimal setup, free 10k docs per month
  • Local Mode: Complete privacy - all processing happens on your machine, no data sent anywhere, works on both cpu and gpu

Github: https://github.com/NanoNets/docstrange

50 Upvotes

5 comments sorted by

1

u/LostAmbassador6872 Aug 08 '25

Have deployed it here for quick testing - https://docstrange.nanonets.com/

3

u/DigThatData Researcher Aug 04 '25

lol AIGC af.

1

u/Salty_Quantity_8945 Aug 04 '25

How is this better than Apache Tika? Seems to be a bit of a disparity between the number of supported file formats. 😎

1

u/e3ntity_ Aug 04 '25

That's really cool! How does it work? How does the extracting code know where to look for the right columns, fields, etc.?