Skip to main content

Backend runtime for Moldo - a visual educational programming language.

Project description

Moldo

Python Version License: MIT Documentation Status

Visual educational programming - block-based, Python-powered, extensible.

Moldo is the backend runtime for a visual block-based programming environment. Learners drag and connect blocks in the mflow-editor desktop app to build programs. The editor compiles the visual graph to a JSON program tree and sends it to this backend, which executes it and streams the output back.

Moldo

The system is extensible through molds - self-contained .zip.mold packages that add new block types to the editor. The 7 built-in capabilities (variables, I/O, control, math, text, collections, functions) are themselves molds.


Installation

pip install moldo
moldo serve

Or from source:

git clone https://github.com/GracePeterMutiibwa/moldo
cd moldo
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
moldo serve

The backend runs at http://127.0.0.1:8000. Open mflow-editor and the green dot in the toolbar confirms the connection.


API

Endpoint Description
GET /health Health check
POST /run Execute a JSON program tree
GET /molds List installed molds
POST /molds/install Upload and install a .zip.mold
DELETE /molds/{name} Uninstall a community mold

Full API docs → docs/api.md or run mkdocs serve for the rendered site.


Molds

A mold adds new block types to the editor. Install any .zip.mold from the editor toolbar - no restart required.

To build your own mold:

  1. Download the mold-template from this repository
  2. Follow the mold developer guide
  3. Pack and attach to a GitHub Release

Documentation

pip install mkdocs-material
mkdocs serve

Then open http://127.0.0.1:8000 to browse the full documentation site.

License

MIT - see LICENSE

Author

Grace Peter Mutiibwa · gracepeter.clearnique.com · GitHub

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

moldo-0.5.2.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

moldo-0.5.2-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file moldo-0.5.2.tar.gz.

File metadata

  • Download URL: moldo-0.5.2.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for moldo-0.5.2.tar.gz
Algorithm Hash digest
SHA256 9eaddf25231ae3ed7b48418371b3c8dbfe6ed4fd43006d0aee64b3d6010d6b01
MD5 9f33417272a5eef9f39970df8ecc48ca
BLAKE2b-256 b5a8766dc646c315b7c008f41e58366d07381126388c94b47cd77a4817a6e0f3

See more details on using hashes here.

File details

Details for the file moldo-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: moldo-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for moldo-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3cf332b3153bfc62db9462531573f2d9978b0a562aa02e60f1918408903925be
MD5 83dc1b2e7080b7458bd40d0a368c0d34
BLAKE2b-256 3ea59ad3b1480a0b8deae1325163262f4797a31b528e2a0bcad990b042d7d560

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