Skip to main content

A unified document parser for PDF, Word, Excel and HTML

Project description

依赖库简述:

  1. PDF 解析:需要 PyMuPDF (fitz) 提供样式信息,pdfplumber 负责表格定位。
  2. Word 解析:核心为 python-docx,并配合 lxml 进行底层 XML 递归扫描。
  3. Excel 解析:依赖 pandasopenpyxl 引擎,同时需要 tabulate 来美化 Markdown 表格输出。
  4. HTML 解析:使用 beautifulsoup4 进行降噪处理,html2text 负责格式转换,httpx 支持异步抓取。

一键安装命令:

pip install jin-document-parser

PDF文档解析转MD

from jin_doc_parser import DocumentParseService, ParseOptions
service = DocumentParseService()
result = service.parse("your.pdf")
print(result.markdown_content)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jin_document_parser-0.1.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jin_document_parser-0.1.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file jin_document_parser-0.1.2.tar.gz.

File metadata

  • Download URL: jin_document_parser-0.1.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for jin_document_parser-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bd7404bdd9cad7e0350c2ece0e837152c25df967913e25c319b6404c55a98076
MD5 b0f38a1564c390a39f91e195c509cc73
BLAKE2b-256 8a00717008403183d6c0eacff85375445b2da5400b5d795d29d15b2149cdcd05

See more details on using hashes here.

File details

Details for the file jin_document_parser-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jin_document_parser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26945c87ed6b480c907a8ead7d62b5a4d2dcaa4c8234393dd79459b66cc19168
MD5 20098b31295cd4d8ca6b322bd382b6c0
BLAKE2b-256 5fc7a931c32bf039d27f64b9aa23f3b107e3353583b6c1058ce81c199b6da8a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page