A Python tool that monitors processes as they start and stop. It utilizes a separate subprocess to capture the current running processes, compares those to the database and adds the process or updates its status. It features graphs created with matplotlib and calls to an API for information about the process. OS Monitor Tool uses Tkinter for the GUI!
Per the documentation, Poetry is a dependency management and packaging tool.
To install the requirements for the app type:
poetry install
and poetry will install all the dependencies listed in the project.lock file.
If you are planning on developing this app further, it is easy to add new dependencies, build, and package your application. A simple example of adding a dependency is:
poetry add requests
This will pull in all the dependencies required for the requests package and add them to the poetry.lock and .toml files.
Now you are ready to setup your .env file. You need to create this file in the root directory of the project. There is a template provided that shows what needs to be added to the .env file. This includes the url for which database you are using. Also, be sure to copy over the subprocess and web_lookup just as they appear as those are needed for the app to run properly.
Once the dependencies are installed and the .env file are in place, you can run the app.
poetry run python main.py
This project contains a requirements.txt file. To install them using pip:
pip install -r requirements.txt
To add additional requirements with pip checkout this answer from alegria on StackOverflow:
And then to run it with python open a terminal and navigate to the root directory and type:
python -m main
That is it, the app should be up and running at this point, capturing, and saving the processes running on your computer.