A unified document parser for PDF, Word, Excel and HTML
Project description
依赖库简述:
- PDF 解析:需要
PyMuPDF(fitz) 提供样式信息,pdfplumber负责表格定位。 - Word 解析:核心为
python-docx,并配合lxml进行底层 XML 递归扫描。 - Excel 解析:依赖
pandas和openpyxl引擎,同时需要tabulate来美化 Markdown 表格输出。 - 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd7404bdd9cad7e0350c2ece0e837152c25df967913e25c319b6404c55a98076
|
|
| MD5 |
b0f38a1564c390a39f91e195c509cc73
|
|
| BLAKE2b-256 |
8a00717008403183d6c0eacff85375445b2da5400b5d795d29d15b2149cdcd05
|
File details
Details for the file jin_document_parser-0.1.2-py3-none-any.whl.
File metadata
- Download URL: jin_document_parser-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26945c87ed6b480c907a8ead7d62b5a4d2dcaa4c8234393dd79459b66cc19168
|
|
| MD5 |
20098b31295cd4d8ca6b322bd382b6c0
|
|
| BLAKE2b-256 |
5fc7a931c32bf039d27f64b9aa23f3b107e3353583b6c1058ce81c199b6da8a5
|