Skip to content

ysfduzgun/restrunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestRunner

A tool for run linux command with flask rest api.

virtualenv env
source env/bin/activate
cd env && mkdir test
cd test && touch test.py
pip install RestRunner

test.py

from restrunner import RestRunner

app = RestRunner()
app.set("debug", True)
# app.set("port", 8000)
# app.set("host", "0.0.0.0")
# app.set("data_folder", "/tmp/")
# print(app.config('port'))
app.run()
python test.py

You can edit data_folder/commands.json now.

gel all command http://127.0.0.1/commands
run test1 command http://127.0.0.1/commands/run/test1

About

Linux command runner with flask rest api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages