Skip to main content

Generate nested Markdown API maps for local Python projects.

Project description

gendoc-md

PyPI Release License: MIT

gendoc-md statically reads a local Python project and generates a nested Markdown API map under docs/api-md.

gendoc-md -p your_package

The generated docs are intended as a quick index for LLMs and humans. The tool does not import or execute the target Python project.

Install

pip install gendoc-md

To install from a local checkout:

python -m pip install .

or build a wheel with maturin:

maturin build --release

Usage

gendoc-md [OPTIONS]
  • -i, --input <DIR>: add an import search root. Can be repeated.
  • -p, --package <IMPORT_NAME>: document a package and its submodules. Can be repeated.
  • -m, --module <IMPORT_NAME>: document a single module by import name. Can be repeated.
  • -o, --output <DIR>: output directory. Defaults to docs/api-md.
  • --render-toc: include generated tables of contents.
  • -j, --jobs <N>: number of worker threads. Defaults to logical CPU count.

When no input roots are given, gendoc-md searches ./src and .. When no package or module is given, it discovers top-level local packages and modules from those roots.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gendoc_md-0.1.2-py3-none-win_amd64.whl (1.8 MB view details)

Uploaded Python 3Windows x86-64

gendoc_md-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

gendoc_md-0.1.2-py3-none-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file gendoc_md-0.1.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: gendoc_md-0.1.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for gendoc_md-0.1.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4a61b0633c2245e597de425588a142ec86513992431e4a50dc8d1d90736f7248
MD5 9419cd746d68d6ec2eb95387eab2b86a
BLAKE2b-256 9d97ff416cc23d7cc672401d38dfb15e9417792de48cfe6f0fe4e1c2d2d43345

See more details on using hashes here.

File details

Details for the file gendoc_md-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gendoc_md-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca0d05c79814f25876ef8dcd2bee196453a9a6979c27fe2da74b5efbacf3a31f
MD5 e748cf0f725929b048b37acebedc1242
BLAKE2b-256 bec1ab44ca6ddcdf63a01727b2ff64186d84c6ffe17fa3fd91de1dc681653e29

See more details on using hashes here.

File details

Details for the file gendoc_md-0.1.2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gendoc_md-0.1.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c76d25c946039514d8d1b515df8a98669f50a221c030af196c316fa4c72eebbc
MD5 a6280056dc87d08a35eee1128dac6ee2
BLAKE2b-256 8bde8155e170a91fa3357a90a2f2f266c94ea71174426e734d74558165bde39b

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