libb.process_by_name

process_by_name(name)[source]

Find processes by name that are listening on a port.

Parameters:

name (str) – Process name to search for.

Yields:

psutil.Process objects matching the name with LISTEN connections.

See also

See tests/test_proc.py for usage examples.