A RESTful API for exposing psutil.
- Clone the repo:
git clone https://github.com/project-overwatch/overwatch-py.git
- Install dependencies:
pip install -r requirements.txt
You can install them globally, or insinde a virtualenv - your call.
-
Make sure port 8000 is open in your server firewall, or in your cloud VM's security group.
-
Run the server:
python overwatch-py/api.py
A list of available routes and their payloads can be found in the code itself, in api.py
. A Swagger spec is on the way.
If you'd like to run the test suite:
pytest overwatch-py/tests.py
..are more than welcome. Please fork the code, hack to your heart's content and file a PR. Also, please make sure any new endpoints
you add are backed up by a test case, in tests.py
.
If you find bugs/issues/better ways to do things, feel free to file an issue too! Hopefully I'd be able to work on it.