pgrep python wrapper
Project description
Installation
$ [sudo] pip install pgrep
Functions
function | __doc__ |
---|---|
pgrep.pgrep(pattern) |
return a list with process IDs which matches the selection criteria |
Examples
>>> import pgrep
>>> pgrep.pgrep("Finder")
[322]
>>> pgrep.pgrep("bash")
[416, 434, 30681, 30918]
>>> pgrep.pgrep("not-existing-process")
[]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pgrep-2019.3.22.tar.gz
(1.3 kB
view hashes)
Built Distribution
pgrep-2019.3.22-py2.py3-none-any.whl
(133.5 kB
view hashes)
Close
Hashes for pgrep-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f86a49dc730bb48fa9ea125f259720a06d218f2e944c1f6316741c231939aa |
|
MD5 | a7bf71cf30c32f7f607910810d6d0e16 |
|
BLAKE2b-256 | fb511707df4182181ee0c10070f4f9c566d4c6ea19b95480b488f18fcce24904 |