依赖库简述:
- 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)
Metadata
Release files for jin-document-parser 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jin_document_parser-0.1.2.tar.gz | 10.0 kB | Without provenance | Details for jin_document_parser-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jin_document_parser-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for jin_document_parser-0.1.2-py3-none-any.whl |
Total release size: 23.1 kB
Release files / jin_document_parser-0.1.2.tar.gz
| Download URL | jin_document_parser-0.1.2.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd7404bdd9cad7e0350c2ece0e837152c25df967913e25c319b6404c55a98076
|
|
BLAKE2b-256 checksum How to use checksums |
8a00717008403183d6c0eacff85375445b2da5400b5d795d29d15b2149cdcd05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / jin_document_parser-0.1.2-py3-none-any.whl
| Download URL | jin_document_parser-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26945c87ed6b480c907a8ead7d62b5a4d2dcaa4c8234393dd79459b66cc19168
|
|
BLAKE2b-256 checksum How to use checksums |
5fc7a931c32bf039d27f64b9aa23f3b107e3353583b6c1058ce81c199b6da8a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for jin-document-parser 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.