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()

Download

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

mayloop-1.0.0.tar.gz (31.7 kB view details)

Uploaded Source

File details

Details for the file mayloop-1.0.0.tar.gz.

File metadata

  • Download URL: mayloop-1.0.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mayloop-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a1eaa3756a274c9723c9a43b14c49eebb116253f67bf9f71e616af70d16e4f8e
MD5 126d792c3b5b5949b7a0c4f13cc8f6c6
BLAKE2b-256 0175588d963d8ddb6d86762a227e354ddc4b5b7d9d4f86061016b41c95fa87ab

See more details on using hashes here.

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