Skip to main content

A framework for network services

Project description

An asynchronous event-based python framework designed for building TCP/IP services, such as telnet, HTTP and websocket servers.

PyPI Tests Test coverage


  • Asynchronous event-based framework

  • Supports multiple servers

Requires Python 3.10 or later, see installation.

See the Documentation for details of how Mara works.

Note: Version 2.0.z is in development, and the API is subject to change without notice. The last release to support Python 2 and 3.9 was version 0.6.3.


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

A minimal Mara service looks something like this:

from mara import App, events
from mara.servers.socket import SocketServer

app = App()
app.add_server(SocketServer(host="", port=9000))

async def echo(event: events.Receive):

Save it as and run it:

$ python
Server listening: Socket

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.

Source Distribution

mara-2.0.0.tar.gz (14.9 kB view hashes)

Uploaded source

Built Distribution

mara-2.0.0-py3-none-any.whl (19.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page