Skip to main content

一个 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 安装
pip install docjson2x


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docjson2x-0.1.3.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docjson2x-0.1.3-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file docjson2x-0.1.3.tar.gz.

File metadata

  • Download URL: docjson2x-0.1.3.tar.gz
  • Upload date:
  • Size: 25.3 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

Hashes for docjson2x-0.1.3.tar.gz
Algorithm Hash digest
SHA256 441b50f0be9fe325e877e180f0a28ae6d5f430d29714f9ca3ac4c34c7b590771
MD5 5b24f5b1f4634a5de0c6984f53566163
BLAKE2b-256 b8aa1a086a479c7eb817ec9305fd1cebaf4e270d2723a6fec5225dd9469e8fa3

See more details on using hashes here.

File details

Details for the file docjson2x-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: docjson2x-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 32.7 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

Hashes for docjson2x-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f1a607462fdba7dcc6941c4461105f0298e524039f06c8f9250faca35935b60
MD5 69bd343398d4fef39179f75186470208
BLAKE2b-256 7c3db4d5e0f9987ad82792dc8e8e510051b908ab21e5b9389294bf72097a3abf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page