nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
fin-infra / API Reference

FinancialDocumentManager

from fin_infra.documents.ease import FinancialDocumentManager
fin_infra.documents.ease
Extends:BaseDocumentManager

Financial document manager extending svc-infra with OCR and AI analysis. Inherits from svc-infra DocumentManager: - upload(), download(), delete(), get(), list() for base document CRUD - storage backend integration Adds financial-specific methods: - upload_financial(): Upload with DocumentType, tax_year, form_type - extract_text(): OCR for tax forms - analyze(): AI-powered financial insights

Attributes

storage: Storage backend (inherited from BaseDocumentManager) default_ocr_provider: OCR provider (tesseract/textract) Examples: >>> from svc_infra.storage import easy_storage >>> storage = easy_storage() >>> manager = FinancialDocumentManager(storage) >>> >>> # Upload W-2 tax form >>> doc = await manager.upload_financial( ... user_id="user_123", ... file=file_bytes, ... document_type=DocumentType.TAX, ... filename="w2.pdf", ... tax_year=2024, ... form_type="W-2" ... )

Constructor
FinancialDocumentManager(storage: StorageBackend, default_ocr_provider: str = 'tesseract')
ParameterTypeDefaultDescription
storagerequiredStorageBackend——
default_ocr_providerstr'tesseract'—

Methods

On This Page

Constructoranalyzeextract_textlist_financialupload_financial