一个 docJson 转换为 Markdown / CSV / HTML 的工具
Project description
docJson2X
docJson2X is a tool to convert docJson to Markdown or CSV, or Html.
-
to_md/to_md_with_id
-
to_csv
Usage
uv build
# upload memect pypi source
uv publish --index memect
# 公共 PyPI 安装(distribution 名为 memect-pdfjson2x,import 仍为 docjson2x)
pip install memect-pdfjson2x
from docjson2x import DocJsonAnalyzer
# eg:
input_file_paht = "tests/data/doc.json"
analyzer = DocJsonAnalyzer().analyze(input_file_paht)
# output to markdown,默认table为md格式输出
output_file_path = "tests/data/doc.md"
analyzer.to_md(output_file_path)
## markdown支持table为html
analyzer.to_md(output_file_path, table_html=True)
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
memect_pdfjson2x-0.1.3.tar.gz
(25.4 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 memect_pdfjson2x-0.1.3.tar.gz.
File metadata
- Download URL: memect_pdfjson2x-0.1.3.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d33ba72b439728accc6fdb8ee754e5865a60ce9600cf556160e24d16d8c439d
|
|
| MD5 |
88780efb64eb7b9c7b7b01fa0606ef66
|
|
| BLAKE2b-256 |
d96550279d28e8344500c18f433f8502d75702e81dda359b46163271b2f18565
|
File details
Details for the file memect_pdfjson2x-0.1.3-py3-none-any.whl.
File metadata
- Download URL: memect_pdfjson2x-0.1.3-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2269332d4246037e51f181d99d9fa4a363fc4fe71362251d7b3a056841301a86
|
|
| MD5 |
4d80156ff7141d86a79761b2e365b309
|
|
| BLAKE2b-256 |
0814dde3817047aa3a12f319fc7a3434472853a7f18a5a10aa63a2481bf390e7
|