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.1-py3-none-win_amd64.whl (1.8 MB view details)

Uploaded Python 3Windows x86-64

gendoc_md-0.1.1-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.1-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.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: gendoc_md-0.1.1-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.13.3

File hashes

Hashes for gendoc_md-0.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7715a0ad506ab524d645dab476598ba7cd25b30fa432b00dc94cb8ff4bf50ab7
MD5 ca5b230bc967f51778aebb20f2bcef9e
BLAKE2b-256 43e59aadff900a4bdce581513f7ec2a5cf29857096d0229f990e545c78ae956b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gendoc_md-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8081a2015f11dae93a9ec850a6efb4c58ec3fd7a1f530191a1b17de26c45f3cf
MD5 b7b9d8f655259201a0e5ba19c72cdb95
BLAKE2b-256 3310b274182ac8a3b01f4105ff9547ab02e7aa9b69eff052be6fea07a043de28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gendoc_md-0.1.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cdc0316166bd4c6c29f1801a0f55acd171a914b712e47a113b9d33aa692c7a7
MD5 0dd9f12d4a3f377d8a5b405ea7a9fe91
BLAKE2b-256 aa6b0c0cd8b9de2421c143dccbe60494d690a19c8a14114f260509ab94206461

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