Skip to main content

DjangoMOO

"LambdaMOO on Django"

release pipeline coverage quality docs

DjangoMOO is a MOO server built on Python and Django. A MOO is a persistent online text world where objects — rooms, things, players — have properties and verbs (methods) that define how they behave. Those verbs are written in Python and run in a sandboxed execution environment, so the world itself is programmable by its inhabitants.

The design follows the LambdaMOO model where it makes sense: a parsed command line, verb dispatch through the caller's inventory and location, object inheritance, and a permission system. The implementation is independent — no MOO bytecode, no C — just Python and Django.

Documentation | GitLab | GitHub mirror | PyPI

What's included

  • A LambdaMOO-inspired parser with full dobj/iobj preposition support
  • Objects, Properties, Verbs, and a ManyToMany inheritance hierarchy backed by PostgreSQL
  • A RestrictedPython verb sandbox with and integrated permissions system and extensive testing
  • A default bootstrap world: rooms, exits, containers, players, a lighting system, in-world mail, and an object placement system
  • Browser playable with no client required, or via plain SSH client
  • Full support for MUDlet and other MUD clients using sshelnet helper
  • Django admin for browsing and editing the world's objects, properties, and verb source
  • Docker for self-hosting with docker compose up

Quick Start

git clone https://gitlab.com/bubblehouse/django-moo
cd django-moo
docker compose up

Bootstrap the database and create your first wizard:

docker compose run webapp manage.py migrate
docker compose run webapp manage.py collectstatic
docker compose run webapp manage.py moo_init
docker compose run webapp manage.py createsuperuser --username wizard
docker compose run webapp manage.py moo_enableuser --wizard wizard Wizard

Connect at https://localhost/ and log in with the account you just created.

Interfaces

MUD Clients

A Mudlet package in extras/mudlet/ provides one-click setup for MUD-client users. Mudlet has no native SSH support, so the package bundles a managed sshelnet launcher that bridges Mudlet's plain-TCP connection to the server's SSH port. It also ships a setup wizard (dmsetup) and a generic-mapper bridge that subscribes to GMCP Room.Info events and feeds them into Mudlet's bundled mapper.

Mudlet Client Example

The server speaks GMCP, MSSP, MSP, EOR, and CHARSET, so other clients (TinTin++, MUSHclient, Blightmud) work too, though without the bundled mapper integration, or automatic sshelnet setup. MXP is not implemented.

Web (WebSocket SSH)

The server is accessible through a browser-based SSH client at /. No SSH client needed.

WebSSH Client Example

WebSSH Editor Example

SSH

Direct SSH access is also available.

ssh -p 8022 yourname@localhost

SSH Client Example

Hit Ctrl-D to disconnect.

Changing your password and managing SSH keys

Credentials are managed from inside the world with in-game verbs rather than the Django admin:

  • @password — interactively changes your password. Prompts for the old password, then the new one twice for confirmation. Wizards may leave the old password blank to perform an administrative reset.
  • @keys — lists your currently registered SSH public keys.
  • @add-key <public-key> — registers a new SSH public key. The key name is taken from the comment field automatically.
  • @remove-key <index> — removes a key by its index from @keys.

Once a key is registered, reconnecting with ssh -p 8022 yourname@localhost skips the password prompt.

Django Admin

A full Django admin interface is available at /admin for managing objects, properties, verbs, and users.

Django Admin Example

Attributions

LambdaCore

This package is derived from the LambdaMOO and LambdaCore documentation, including the LambdaCore Programmer's Manual and the LambdaMOO Programmer's Manual. The code was written without reading the original LambdaCore source; it is an independent reimplementation based on documented behavior and conventions.

Various verbs have been modified from their LambdaCore equivalents to better fit a Pythonic codebase: output uses print() rather than return values, property access follows Django ORM patterns, and permission idioms have been updated to account for differences in how this server dispatches verbs compared to LambdaMOO.

DjangoMOO could not have happened without the work of the following authors:

  • LambdaCore Database User's Manual (LambdaMOO 1.3, April 1991) Mike Prudence (blip), Simon Hunt (Ezeke), Floyd Moore (Phantom), Kelly Larson (Zaphod), Al Harrington (geezer)

  • LambdaCore Programmer's Manual (LambdaMOO 1.8.0p6, Copyright 1991) Mike Prudence (blip), Simon Hunt (Ezeke), Floyd Moore (Phantom), Kelly Larson (Zaphod), Al Harrington (geezer)

  • LambdaMOO Programmer's Manual (LambdaMOO 1.8.0p6, March 1997) Pavel Curtis (Haakon / Lambda)

Release files for django-moo 1.14.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-moo 1.14.2
File Size Uploaded
django_moo-1.14.2.tar.gz 714.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-moo 1.14.2
File Interpreter ABI Platform
django_moo-1.14.2-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / django_moo-1.14.2.tar.gz

Download URL django_moo-1.14.2.tar.gz
Size 714.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9f8984e870db356375a108bb6911d60f1545202e4d09e0a817256181cba3f0f7
BLAKE2b-256 checksum
How to use checksums
d6d134ded28f83f741b809b90aab9a31ea56f608e52b1b30a9af200b5b2b746d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / django_moo-1.14.2-py3-none-any.whl

Download URL django_moo-1.14.2-py3-none-any.whl
Size 635.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4bdea92158bf1fc2d70af3df8e92f75824984125b891f025b1b7f888668ea15
BLAKE2b-256 checksum
How to use checksums
88b9319b246ea624dd3826e0180c5652d6514518e7c1f7d8fbb2e17c1f22d5c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

1.15.0

2 release files

This release

1.14.2 This release

2 release files

1.13.0

2 release files

1.12.4

2 release files

1.12.3

2 release files

1.12.2

2 release files

1.12.1

2 release files

1.12.0

2 release files

1.11.2

2 release files

1.11.1

2 release files

1.11.0

2 release files

1.10.1

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.0.1

2 release files

0.99.0

2 release files

0.98.0

2 release files

0.97.0

2 release files

0.96.0

2 release files

0.95.0

2 release files

0.91.1

2 release files

0.91.0

2 release files

0.90.1

2 release files

0.90.0

2 release files

0.89.3

2 release files

0.89.1

2 release files

0.89.0

2 release files

0.88.3

2 release files

0.88.2

2 release files

0.88.1

2 release files

0.88.0

2 release files

0.87.0

2 release files

0.86.0

2 release files

0.85.1

2 release files

0.85.0

2 release files

0.84.0

2 release files

0.83.0

2 release files

0.82.0

2 release files

0.81.3

2 release files

0.81.2

2 release files

0.81.1

2 release files

0.81.0

2 release files

0.80.4

2 release files

0.80.3

2 release files

0.80.2

2 release files

0.80.1

2 release files

0.80.0

2 release files

0.79.2

2 release files

0.79.1

2 release files

0.79.0

2 release files

0.78.1

2 release files

0.78.0

2 release files

0.77.4

2 release files

0.77.3

2 release files

0.77.2

2 release files

0.77.1

2 release files

0.77.0

2 release files

0.76.0

2 release files

0.75.0

2 release files

0.74.0

2 release files

0.73.0

2 release files

0.72.0

2 release files

0.71.0

2 release files

0.70.0

2 release files

0.69.0

2 release files

0.68.0

2 release files

0.67.3

2 release files

0.67.2

2 release files

0.67.1

2 release files

0.67.0

2 release files

0.66.0

2 release files

0.51.0

2 release files

0.50.0

2 release files

0.49.0

2 release files

0.48.3

2 release files

0.48.2

2 release files

0.48.1

2 release files

0.48.0

2 release files

0.47.5

2 release files

0.47.4

2 release files

0.47.3

2 release files

0.47.2

2 release files

0.47.1

2 release files

0.47.0

2 release files

0.46.2

2 release files

0.46.1

2 release files

0.46.0

2 release files

0.44.0

2 release files

0.43.0

2 release files

0.42.0

2 release files

0.40.0

2 release files

0.39.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page