Skip to main content

An asynchronous i/o library.

Project description

An asynchronous i/o library.

Features

  • Asynchronous i/o loop to run socket servers.
  • Telnet interface to control the loop, print the stats, etc.

Usage

The following code sample creates a simple protocol that just sends back the message it receives and then starts a server that will use the protocol:

class Talkback(FixedLengthMessage):
        def messageReceived(self, message):
                self.sendMessage(message)

config = Config()
config.add_service('', 8080, Factory.forProtocol(Talkback))

server = MainLoop(config)
server.start()

Project details


Release history Release notifications

This version

1.0.0

Download files

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

Files for mayloop, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mayloop-1.0.0.tar.gz (31.7 kB) File type Source Python version None Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page