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.8.1.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.8.1-py3-none-any.whl (8.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymodo-0.8.1.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.8.1.tar.gz
Algorithm Hash digest
SHA256 f7ef2eeb30d237dee349dc15b4efc2041cdd024d31da4927b8452352db59641b
MD5 7247c2ced83790bd9420f2e79de002c4
BLAKE2b-256 7de0b3491ffab44df93d7600fd6b502ea4ad74133e45759e9e676c5ae340f1e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymodo-0.8.1-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.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d01acd2155f917aa3d4de221cff52869bd4798af403295bc7c7bfbebd9bd2e17
MD5 fdffa781e5cf4b82008b334e54e9c4fc
BLAKE2b-256 3037377b8930435b2b16d48c37541cf2d8677b0d4e5140292fd36b8942ffc8f8

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