Skip to content

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

Notifications You must be signed in to change notification settings

delihiros/pserve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages