noahgift / adapt

A framework for Python command line tools. It converts existing scripts into command line tools, and optionally converts command line tools into RESTFUL web services.

Clone this repository (size: 175.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/noahgift/adapt/
commit 11: dfda9fd401a3
parent 10: b50c87fdfc3b
fixing name collision defaulttip
ng...@blindmelon.imagemoversdigital.com
7 months ago
View at rev
adapt /
filename size last modified message
v1  
v2  
README.txt 378 B 10 months ago updated the README to include the web service start command
cli.py 1.7 KB 11 months ago adam: added serve.py, test_serve.py and urlrelay.py
cli.pyc 2.1 KB 10 months ago removing pyc files
config.ini 108 B 11 months ago adding a basic example
serve.py 1.6 KB 10 months ago added information when starting adapt and a nice exception…
test_cli.py 438 B 11 months ago adding finished prototype
test_serve.py 1.2 KB 10 months ago misplaced doc string
urlrelay.py 12.0 KB 11 months ago adam: added serve.py, test_serve.py and urlrelay.py

README

This is a prototype of a tool that will take
unix commands and integrate them automatically
into a python command line tool.


All you have to do to get it to work is to place
your own commands in the config.ini

The commands and options are generated based on the values
in the config file.

To start Adapt as a web service:
        python serve.py

To exit the web service:
        Ctrl-C