Is it possible in python to kill a process that is listening on a specific port, say for example 8080?
I can do netstat -ltnp | grep 8080
and kill -9 <pid>
OR execute a shell command from python but I wonder if there is already some module that contains API to kill process by port or name?