Skip to main content

EventSocket - Socket wrapper for libevent TCP applications

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.

Metadata

Release files for py_eventsocket 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py_eventsocket 0.1.5
File Size Uploaded Provenance Actions
py_eventsocket-0.1.5.tar.gz 8.9 kB Without provenance Details for py_eventsocket-0.1.5.tar.gz

Release files / py_eventsocket-0.1.5.tar.gz

Download URL py_eventsocket-0.1.5.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
905129e5ce3dd91cb8aa431f6e054be2b7b070f98a0c87eb1bd76398e3654e77
BLAKE2b-256 checksum
How to use checksums
70dc7fb5aafcd35a187cc583547f37810f2578b8ad263e2c2d26a10127c0d22d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for py_eventsocket 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page