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.

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.1.tar.gz (17.4 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.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moldo-0.5.1.tar.gz
  • Upload date:
  • Size: 17.4 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.1.tar.gz
Algorithm Hash digest
SHA256 f9a477300c471f5b3b0294091a0ef39e0e38adc69df7d740f08a553bad230e38
MD5 1d8cffe9206df6c7291b2815e6914a4b
BLAKE2b-256 bb3494ac7790171a52e93ead4900b6af636dff74ae3e014008078726ddd74ef5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moldo-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b49d2242bd1533f711ad3ffbafb6d2d458328e36867c8906ea27d7c66f9f6856
MD5 285954e472fc7e573219ffdc6c51c764
BLAKE2b-256 b43d33203a78ba6c5d3b6eea3b8e32ee18812a725a09623c06be385972b6f937

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