Skip to main content

A framework for network services, talkers and MUDs

Project description

An event-based python framework designed for building TCP/IP services, such as echo servers, flash policy servers, chatrooms, talkers and MUDs. Batteries included.


  • Event-based framework with support for timers
  • Supports raw sockets or telnet with negotiation
  • Supports seamless restarts while maintaining connections
  • Common extras included, such as:
    • command manager
    • storage system
    • natural language processing tools
    • accounts, login helpers and rooms

Version 0.6.0. Supports Python 2.7 and 3.2 to 3.5.

See the Documentation for details of how Mara works.


Install Mara with pip install mara, then write your service using event handlers.

A minimal Mara service looks something like this:

from mara import Service
service = Service()

def receive(event):

if __name__ == '__main__':

Save it as and run it:

* Server listening on

Take a look at the examples to see how to start writing more complex services, or read the documentation for details of how Mara works.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mara-0.6.0-py2.py3-none-any.whl (17.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3
mara-0.6.0.tar.gz (55.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page