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)