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.1.tar.gz (9.5 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.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jin_document_parser-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 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.1.tar.gz
Algorithm Hash digest
SHA256 75ecee93e94aa88a52e01175b34a3e7a49f9045452b167f327ed4525998c39d2
MD5 c8f23c6b3fa07eccff9d4201d2345388
BLAKE2b-256 a2db2075c0f603a84ee8f33f5fa33d5e4660eafad7449c5400db935bff6b56a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jin_document_parser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f03dab1f2dbfb5488e187d87a9e086a6aad5e7c0dc726f311ebb81bf65a534d
MD5 4cb8d7e7a3c87bfb3020e7e5b53ec51f
BLAKE2b-256 48c42849037988cc299ff218011be1702719dd33767c9267506f8757fc271dd8

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