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)
Metadata
Release files for memect-pdfjson2x 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| memect_pdfjson2x-0.1.3.tar.gz | 25.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| memect_pdfjson2x-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.2 kB
Release files / memect_pdfjson2x-0.1.3.tar.gz
| Download URL | memect_pdfjson2x-0.1.3.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d33ba72b439728accc6fdb8ee754e5865a60ce9600cf556160e24d16d8c439d
|
|
BLAKE2b-256 checksum How to use checksums |
d96550279d28e8344500c18f433f8502d75702e81dda359b46163271b2f18565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / memect_pdfjson2x-0.1.3-py3-none-any.whl
| Download URL | memect_pdfjson2x-0.1.3-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2269332d4246037e51f181d99d9fa4a363fc4fe71362251d7b3a056841301a86
|
|
BLAKE2b-256 checksum How to use checksums |
0814dde3817047aa3a12f319fc7a3434472853a7f18a5a10aa63a2481bf390e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|