diff --git a/README.md b/README.md index 2b7f8cf..12a0263 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,15 @@ a response-comparing proxy server made of pure evil you can use it to test out a new apprentice, to make sure it responds to all queries the same way master does. ##setup +use pip: + + pip install dark-side + +or clone this repo, then run: + + pip install -r requirements.txt + python setup.py install -`pip install -r requirements.txt` ##usage @@ -14,7 +21,7 @@ suppose you have an existing api at api.legitimate-business.com, and you want to run -`python server.py api.legitimate-business.com --apprentice new-api.legitimate-business.com` +`python darkside.py api.legitimate-business.com --apprentice new-api.legitimate-business.com` and darkside will listen on port 8987 (change that with --port). diff --git a/server.py b/darkside.py old mode 100644 new mode 100755 similarity index 99% rename from server.py rename to darkside.py index 28b8ab1..25f810f --- a/server.py +++ b/darkside.py @@ -1,3 +1,5 @@ +#!/usr/bin/python + import gevent import requests import json diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..ba2d8fc --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +#!/usr/bin/python + +from distutils.core import setup + + +setup(name='dark-side', + version='1.0.1', + description='response comparing proxy server', + requires=['gevent','requests','json_tools'], + author='mark neyer', + scripts=['darkside.py'])