Skip to main content

Python wrapper for Modo, a documentation generator (DocGen) for the Mojo programming language.

Project description

Modo🧯

Test status stable nightly Go Report Card User Guide Go Reference GitHub MIT license

Modo🧯 is a documentation generator (DocGen) for the Mojo🔥 programming language. It generates Markdown for static site generators (SSGs) from mojo doc JSON output.

This example in the User guide shows a Mojo🔥 package processed with Modo🧯 and rendered with Hugo, to demonstrate Modo🧯's features.

Features

See the User guide for more information.

Installation

Using Python

Modo🧯 is available on PyPI as pymodo. Install it with pip:

pip install pymodo

This installs the modo command. If the command is not found, try:
python -m pymodo

Using Go

With Go installed, you can install Modo🧯 like this:

go install github.com/mlange-42/modo@latest

Precompiled binaries

Pre-compiled binaries for manual installation are available in the Releases for Linux, Windows and MacOS.

Usage

In your Mojo🔥 project, set up Modo🧯:

modo init

This sets up the project with default settings and paths. See the generated modo.yaml file to modify them.

Next, run mojo doc to extract the API docs in JSON format:

mojo doc src/ -o api.json

Finally, build the Markdown documentation:

modo build

See the User guide for more information.

Packages using Modo🧯

  • Larecs -- a performance-centred archetype-based ECS (docs).

License

This project is distributed under the MIT license.

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

pymodo-0.9.0.tar.gz (8.9 MB view details)

Uploaded Source

Built Distribution

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

pymodo-0.9.0-py3-none-any.whl (8.8 MB view details)

Uploaded Python 3

File details

Details for the file pymodo-0.9.0.tar.gz.

File metadata

  • Download URL: pymodo-0.9.0.tar.gz
  • Upload date:
  • Size: 8.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pymodo-0.9.0.tar.gz
Algorithm Hash digest
SHA256 c6f9f7a2901fd6c2bcb1459ca28e3015aa80ecd7b575192e7f5d265cf0dabc69
MD5 f3cdd72804c1c6b97462a9e85adad553
BLAKE2b-256 e4178b636d0cdbdadd4e8031fd16f9894e091f1f0226f6bdafb80a6a5cde79d9

See more details on using hashes here.

File details

Details for the file pymodo-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: pymodo-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pymodo-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 319b5c62d8b68e76e5b9c252446382c2f360ff9955e15aa791d3ac133ffda74e
MD5 2fa0b4bf0b60a4de90b935f5cd6e3419
BLAKE2b-256 2cd483084007ff57b6352bc4577ee87c68071c96d107f6c318cdba84e8767168

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