Skip to main content

Easy to use TCP socket based on libevent

Project description

Version:
0.1.4
Download:

http://pypi.python.org/pypi/py_eventsocket

Source:

https://github.com/agoragames/py-eventsocket

Keywords:

python, mocking, testing, unittest, unittest2

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.

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

py_eventsocket-0.1.5.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file py_eventsocket-0.1.5.tar.gz.

File metadata

File hashes

Hashes for py_eventsocket-0.1.5.tar.gz
Algorithm Hash digest
SHA256 905129e5ce3dd91cb8aa431f6e054be2b7b070f98a0c87eb1bd76398e3654e77
MD5 cb6f0c2c72c73887bf42aa7a2c308370
BLAKE2b-256 70dc7fb5aafcd35a187cc583547f37810f2578b8ad263e2c2d26a10127c0d22d

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