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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75ecee93e94aa88a52e01175b34a3e7a49f9045452b167f327ed4525998c39d2
|
|
| MD5 |
c8f23c6b3fa07eccff9d4201d2345388
|
|
| BLAKE2b-256 |
a2db2075c0f603a84ee8f33f5fa33d5e4660eafad7449c5400db935bff6b56a9
|
File details
Details for the file jin_document_parser-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jin_document_parser-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.6 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 |
1f03dab1f2dbfb5488e187d87a9e086a6aad5e7c0dc726f311ebb81bf65a534d
|
|
| MD5 |
4cb8d7e7a3c87bfb3020e7e5b53ec51f
|
|
| BLAKE2b-256 |
48c42849037988cc299ff218011be1702719dd33767c9267506f8757fc271dd8
|