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

Easy to use TCP socket based on libevent

Project Description

Overview

EventSocket is a wrapper around standard Python sockets that provides a simple callback API for handling reading, accepting, closures and errors. It is built specifically for TCP sockets, though it may be compatible with any socket family that uses send and recv (i.e. not UDP).

Examples

See the scripts directory for examples of how to use EventSocket.

http_client
A client which runs simultaneous requests to an http server. Mimics behavior of siege, though it only supports a few options.
proxy
A simple proxy which forwards data from localhost to another host:port. Shows examples of setting up a server socket, handling an incoming connection and socket closures.

Installation

To install using pip,:

$ pip install py-eventsocket

If installing from source:

  • with development requirements (e.g. testing frameworks)

    pip install -r development.txt
    
  • without development requirements

    pip install -r requirements.txt
    

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to our issue tracker at https://github.com/agoragames/py-eventsocket/issues

License

This software is licensed under the New BSD License. See the LICENSE.txt file in the top distribution directory for the full license text.

Release History

Release History

This version
History Node

0.1.5

History Node

0.1.4

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
py_eventsocket-0.1.5.tar.gz (8.9 kB) Copy SHA256 Checksum SHA256 Source Nov 4, 2011

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