From 32957fe5e832262d27c88052f1cd9d4dfc1ebcb2 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 23 Jan 2013 13:38:34 +0100 Subject: [PATCH] Change standard chunk size for the test client, and remove bitstring as a dependency --- pyreactor/reactor.py | 1 - setup.py | 12 ++++++++++++ testclient.py | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/pyreactor/reactor.py b/pyreactor/reactor.py index df11fb7..a8b198a 100644 --- a/pyreactor/reactor.py +++ b/pyreactor/reactor.py @@ -1,4 +1,3 @@ -from bitstring import BitArray import select, msgpack class ReactorException(Exception): diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..72bcb81 --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +from setuptools import setup + +setup(name='pyreactor', + version='0.1', + description='Simple evented networking library, designed for custom protocols.', + author='Sven Slootweg', + author_email='pyreactor@cryto.net', + url='http://cryto.net/pyreactor', + packages=['pyreactor'], + provides=['pyreactor'], + install_requires=['msgpack-python'] + ) diff --git a/testclient.py b/testclient.py index c8075e3..902ca8f 100644 --- a/testclient.py +++ b/testclient.py @@ -1,6 +1,8 @@ import pyreactor, time class TestClient(pyreactor.BaseClient): + chunk_size = 8192 + def event_receive(self, data): print "Received message: %s" % repr(data)