Python script to list and kill processes
Create virtual environment:
python -m venv <virtual-environment-name>
Activate virtual environment:
source <virtual-environment-name>/bin/activate
Install requirements:
pip install -r requirements.txt
To list all running processes with relative pid:
python main.py -l
To kill a process:
python main.py -n <process-name>
Note: the process name must be a name in the list obtained from the previous command.