Installation
$ [sudo] pip install pgrep
Examples
>>> import pgrep
>>> pgrep.pgrep("Finder")
[322]
>>> pgrep.pgrep("bash")
[416, 434, 30681, 30918]
>>> pgrep.pgrep("not-existing-process")
[]
pgrep python wrapper
$ [sudo] pip install pgrep
>>> import pgrep
>>> pgrep.pgrep("Finder")
[322]
>>> pgrep.pgrep("bash")
[416, 434, 30681, 30918]
>>> pgrep.pgrep("not-existing-process")
[]