diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | bin/magicproxy | 4 | ||||
-rw-r--r-- | dist/magicproxy-0.1-py2.5.egg | bin | 0 -> 11658 bytes | |||
-rwxr-xr-x | magicproxy/__init__.py (renamed from proxy.py) | 4 | ||||
-rw-r--r-- | magicproxy/gui.py (renamed from gui.py) | 0 | ||||
-rw-r--r-- | setup.py | 24 |
6 files changed, 31 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/bin/magicproxy b/bin/magicproxy new file mode 100755 index 0000000..5caf0ac --- /dev/null +++ b/bin/magicproxy @@ -0,0 +1,4 @@ +#!/usr/bin/python +import magicproxy +import sys +sys.exit(magicproxy.main()) diff --git a/dist/magicproxy-0.1-py2.5.egg b/dist/magicproxy-0.1-py2.5.egg Binary files differnew file mode 100644 index 0000000..2f76c5e --- /dev/null +++ b/dist/magicproxy-0.1-py2.5.egg diff --git a/proxy.py b/magicproxy/__init__.py index edf6be2..5ab9773 100755 --- a/proxy.py +++ b/magicproxy/__init__.py @@ -11,7 +11,7 @@ class DefaultConfiguration: listen=("",8080) """available http-proxies""" - endpoints=[ ('10.2.2.11', 8888) ] + endpoints=[ ('10.2.2.11', 8888), ('10.3.1.2',8888) ] """minimum entity size to start parallelize fetch""" threshold = 512*kB @@ -280,7 +280,7 @@ class HTTPProxyServer(asyncore.dispatcher): conn, addr = self.accept() HTTPChannel(self, conn, addr) -if __name__ == "__main__": +def main(): proxy = HTTPProxyServer(DefaultConfiguration) print proxy asyncore.loop() diff --git a/gui.py b/magicproxy/gui.py index 441a1f2..441a1f2 100644 --- a/gui.py +++ b/magicproxy/gui.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bb33db6 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +from setuptools import setup, find_packages + +setup( + name='magicproxy', + version='0.1', + description='poor mans http multiplexer', + author='xapek.org', + author_email='magicproxy@xapek.org', + url='http://xapek.org', + packages=find_packages(), + scripts=["bin/magicproxy"], +# package_data={'doc':['*.txt'], 'xml':['*.xml']}, +# include_package_data = True, + long_description="""magic proxy split your http requests in smaller chunks +and distribute them over several http-proxies wich can be connected via different +dial-up connection""", + classifiers=[ + "Programming Language :: Python", + "Topic :: Software Development :: Libraries :: Python Modules", + "Intended Audience :: Developers",] + ) + |