API reference

Exceptions

psutil.NoSuchProcess

Raised when no process with the given PID/parameter was found in the current process list.

psutil.AccessDenied

Exception raised when permission to perform an action is denied.

Classes

psutil.Process(pid)

A class which represents an OS process.

Functions

psutil.get_pid_list()

Return a list of current running PIDs.

psutil.pid_exists(pid)

Check whether the given PID exists in the current process list.

psutil.process_iter()

Return an iterator yielding a Process class instances for all running processes on the local machine.