Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 570 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 570 Bytes

PServe

Make your interactive command work as an HTTP server! :)

Currently Supports line-by-line commands, like Kytea and python interpreters.

install

$ python setup.py install

how to use

making Python interpreter work as HTTP server

$ pserve --port 8080 --command 'python -i -q'
...

$ curl localhost:8080?stdin="5-2"
>>> 3

some problems that might currently occur

  • no response from command will end up hanging response
  • when command returns multiple lines of result, it will break
  • many access to a server might make it unstable