Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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 and state
  • Common extras included, such as:
    • command manager
    • storage system
    • natural language processing tools
    • accounts, login helpers and rooms

Version 0.6.2. 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, events
service = Service()

def receive(event):

if __name__ == '__main__':

Save it as and run it:

* Server listening on

Override settings in code, or by passing arguments on the command line:

python --host= --port=8000
* 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.

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mara-0.6.2-py2.py3-none-any.whl (17.5 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Sep 25, 2017
mara-0.6.2.tar.gz (101.5 kB) Copy SHA256 Checksum SHA256 Source Sep 25, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting