Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoNets/docstrange
/ types & classes
Types & classes
41 in github.com/NanoNets/docstrange
⨍
Functions
340
◇
Types & classes
41
↳
Endpoints
6
↓ 39 callers
Class
DocumentExtractor
Main class for converting documents to LLM-ready formats.
docstrange/extractor.py:27
↓ 36 callers
Class
ConversionError
Raised when document conversion fails.
docstrange/exceptions.py:4
↓ 21 callers
Class
ConversionResult
Result object with methods to export to different formats.
docstrange/result.py:689
↓ 13 callers
Class
FileNotFoundError
Raised when the input file is not found.
docstrange/exceptions.py:14
↓ 12 callers
Class
LayoutElement
Represents a layout element with position and content.
docstrange/pipeline/layout_detector.py:11
↓ 4 callers
Class
AuthService
Handles browser-based authentication for DocStrange using Auth0.
docstrange/services/auth_service.py:306
↓ 4 callers
Class
ModelDownloader
Downloads pre-trained models from Hugging Face or Nanonets S3.
docstrange/pipeline/model_downloader.py:14
↓ 3 callers
Class
GPUConversionResult
Enhanced ConversionResult for GPU processing with Nanonets OCR capabilities.
docstrange/processors/gpu_processor.py:20
↓ 3 callers
Class
ImageProcessor
Processor for image files (JPG, PNG, etc.) with OCR capabilities.
docstrange/processors/image_processor.py:16
↓ 3 callers
Class
NanonetsOCRService
Nanonets OCR implementation using NanonetsDocumentProcessor.
docstrange/pipeline/ocr_service.py:39
↓ 3 callers
Class
PDFProcessor
Processor for PDF files using PDF-to-image conversion with OCR.
docstrange/processors/pdf_processor.py:19
↓ 2 callers
Class
CloudProcessor
Processor for cloud-based document conversion using Nanonets API.
docstrange/processors/cloud_processor.py:213
↓ 2 callers
Class
DocumentSection
Represents a section in a document.
mcp_server_module/server.py:32
↓ 2 callers
Class
NeuralOCRService
Neural OCR implementation using docling's pre-trained models.
docstrange/pipeline/ocr_service.py:122
↓ 2 callers
Class
OllamaFieldExtractor
Service for extracting structured data from markdown using local Ollama models.
docstrange/services/ollama_service.py:10
↓ 1 callers
Class
AuthCallbackHandler
Handle OAuth callback from the browser.
docstrange/services/auth_service.py:22
↓ 1 callers
Class
CloudConversionResult
Enhanced ConversionResult for cloud mode with lazy API calls.
docstrange/processors/cloud_processor.py:16
↓ 1 callers
Class
DOCXProcessor
Processor for Microsoft Word DOCX and DOC files.
docstrange/processors/docx_processor.py:11
↓ 1 callers
Class
DocstrangeServer
MCP Server for document processing using docstrange.
mcp_server_module/server.py:52
↓ 1 callers
Class
DocumentCache
Cache for processed documents.
mcp_server_module/server.py:42
↓ 1 callers
Class
ExcelProcessor
Processor for Excel files (XLSX, XLS) and CSV files.
docstrange/processors/excel_processor.py:15
↓ 1 callers
Class
GPUProcessor
Processor for image files and PDFs with Nanonets OCR capabilities.
docstrange/processors/gpu_processor.py:256
↓ 1 callers
Class
HTMLProcessor
Processor for HTML files using markdownify for conversion.
docstrange/processors/html_processor.py:15
↓ 1 callers
Class
LayoutDetector
Handles layout detection and markdown generation.
docstrange/pipeline/layout_detector.py:38
↓ 1 callers
Class
MarkdownToHTMLConverter
Comprehensive markdown to HTML extractor.
docstrange/result.py:356
↓ 1 callers
Class
MarkdownToJSONParser
Comprehensive markdown to structured JSON parser.
docstrange/result.py:13
↓ 1 callers
Class
NanonetsDocumentProcessor
Neural Document Processor using Nanonets OCR model.
docstrange/pipeline/nanonets_processor.py:12
↓ 1 callers
Class
NetworkError
Raised when network operations fail (e.g., URL fetching).
docstrange/exceptions.py:19
↓ 1 callers
Class
NeuralDocumentProcessor
Neural Document Processor using docling's pre-trained models.
docstrange/pipeline/neural_document_processor.py:61
↓ 1 callers
Class
PPTXProcessor
Processor for PowerPoint files (PPT, PPTX).
docstrange/processors/pptx_processor.py:15
↓ 1 callers
Class
TXTProcessor
Processor for plain text files.
docstrange/processors/txt_processor.py:11
↓ 1 callers
Class
URLProcessor
Processor for URLs and web pages.
docstrange/processors/url_processor.py:14
↓ 1 callers
Class
UnsupportedFormatError
Raised when the input format is not supported.
docstrange/exceptions.py:9
Class
docstrange/static/script.js:3
Class
BaseProcessor
Base class for all document processors.
docstrange/processors/base.py:12
Class
DocStrangeApp
docstrange/static/script.js:3
Class
InternalConfig
docstrange/config.py:3
Class
OCRService
Abstract base class for OCR services.
docstrange/pipeline/ocr_service.py:11
Class
OCRServiceFactory
Factory for creating OCR services based on configuration.
docstrange/pipeline/ocr_service.py:190
Class
TestConversionResult
Test cases for ConversionResult class.
tests/test_converter.py:116
Class
TestFileConverter
Test cases for DocumentExtractor class.
tests/test_converter.py:10