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. See the Modo🧯 slides for a feature overview.

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

With Go, you can also install the latest development version:
go install github.com/mlange-42/modo@main

Precompiled binaries

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

Usage

To initialize an existing Mojo🔥 project for Modo🧯 and an SSG like Hugo, run command init once:

modo init hugo

This sets up everything to be able to build Markdown files for the target SSG with command build:

modo build

Finally, serve or build the site with the target SSG (here Hugo):

hugo serve -s docs/site/

See Project setup for details and other supported SSGs.

Packages using Modo🧯

  • Larecs🌲 -- a performance-centred archetype-based ECS (docs).
  • ExtraMojo -- a collection of useful things that aren't (yet) in the standard library (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.11.13.tar.gz (10.0 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.11.13-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymodo-0.11.13.tar.gz
  • Upload date:
  • Size: 10.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pymodo-0.11.13.tar.gz
Algorithm Hash digest
SHA256 22c517e9efd8502e50402d7f316a0960a7d57b57a42ed2ad140bf1422dd0ef0d
MD5 8c4b3ec7f02fd51004a80271e52a119d
BLAKE2b-256 437e6adfb6846987b0636c2de33c53b004f94af99b054840cc7fb6738d9d7913

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymodo-0.11.13-py3-none-any.whl
  • Upload date:
  • Size: 9.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pymodo-0.11.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a6ae39e5c00452fa7df8b5163c5f20de7dbe660a184618cd8869e913038a7c34
MD5 dbe0eed9e39b809b82f4e51a02e50535
BLAKE2b-256 4b8990600d5b873c2f0e63f4f8494821dbc6c7c0bec18149006f203c532f676e

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