Skip to content

Commit

Permalink
updated readme, moved server to executable script, added setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
neyer committed Nov 14, 2012
1 parent ed88838 commit 0e97e90
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ 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

suppose you have an existing api at api.legitimate-business.com, and you want to test the new api, at new-api.legitimate-business.com. it'd be a shame if that new api had problems, wouldn't it? lucky for you, the dark side will train this new apprentice:

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).

Expand Down
2 changes: 2 additions & 0 deletions server.py → darkside.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/python

import gevent
import requests
import json
Expand Down
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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'])

0 comments on commit 0e97e90

Please sign in to comment.