A tool for run linux command with flask rest api.
Project description
RestRunner
A tool for run linux command with flask rest api.
virtual env
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
gel all command
http://127.0.0.1/commands
run test1 command
http://127.0.0.1/commands/run/test1
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
RestRunner-0.0.6.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RestRunner-0.0.6.tar.gz.
File metadata
- Download URL: RestRunner-0.0.6.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
184dce029c313389e07984cc5506b8901125dbee57375aa12f37909a6044f75b
|
|
| MD5 |
60490983905a9737810419b5a245955b
|
|
| BLAKE2b-256 |
b35e3e16c806cedd72b7d412ad600e32f0adfe372f77ff8e768bf5531a8db487
|
File details
Details for the file RestRunner-0.0.6-py3-none-any.whl.
File metadata
- Download URL: RestRunner-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9653fa6e84bce43dd6441b8fe45ad71cb726a1a6f57f83610473a9d17f6150fe
|
|
| MD5 |
37f0c3a899ed702a0117ea41db8ac12b
|
|
| BLAKE2b-256 |
556f62b08848ed445ee24ee4a66f53e31bad5573a38911a79024da1eaf5395b3
|