Skip to main content

Output API docs to Markdown using Griffe.

Project description

griffe2md

ci documentation pypi version gitter

Output API docs to Markdown using Griffe.

Installation

pip install griffe2md

With uv:

uv tool install griffe2md

Usage

Simply call griffe2md with a package name, or the path to a package folder:

griffe2md markdown
griffe2md path/to/my/src/package

Use the -o, --output option to write to a file instead of standard output:

griffe2md markdown -o markdown.md

griffe2md can be configured in either pyproject.toml or a griffe2md.toml file. The latter can be placed in a .config or config directory in the project root.

griffe2md.toml file is structured as a simple key-value dictionary, e.g.:

docstring_style = "sphinx"

If you configure it in pyproject.toml, the configuration should go under the tool.griffe2md key:

[tool.griffe2md]
docstring_style = "sphinx"

See the documentation for reference.

Sponsors

Silver sponsors

FastAPI

Bronze sponsors

Nixtla


ofek samuelcolvin tlambert03 ssbarnea femtomc cmarqu kolenaIO ramnes machow BenHammersley trevorWieland MarcoGorelli analog-cbarber OdinManiac rstudio-sponsorship schlich butterlyn livingbio NemetschekAllplan EricJayHartman 15r10nk activeloopai roboflow cmclaughlin blaisep RapidataAI rodolphebarbanneau theSymbolSyndicate blakeNaccarato ChargeStorm Alphadelta14 Cusp-AI

And 7 more private sponsor(s).

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

griffe2md-1.5.0.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

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

griffe2md-1.5.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file griffe2md-1.5.0.tar.gz.

File metadata

  • Download URL: griffe2md-1.5.0.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for griffe2md-1.5.0.tar.gz
Algorithm Hash digest
SHA256 58e184dffcd506ca97f54516dc07dd41f98ddc76eb17ba30518cf3dda18f6a51
MD5 dd9e39a6e98db42a24199be32e51e9aa
BLAKE2b-256 f3a818adadd26454832fb0beaea07e5f05b92f8830a112ec860d3c403914d651

See more details on using hashes here.

File details

Details for the file griffe2md-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: griffe2md-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for griffe2md-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1becaff032cb02ffedd46057a83c218400bb586579c37010ec8504377108591d
MD5 1fc16f1466162aec814c70ea5e7923c9
BLAKE2b-256 a55075d7902f3a82e77710123418e905302309e116c4d12050f04cf6f4ed9d4e

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