Skip to main content

pgrep python wrapper

Project description

Install

$ [sudo] pip install pgrep

Functions

function description
pgrep.pgrep(pattern) return 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")
[]

readme-md - README.md generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgrep-2018.11.20.tar.gz (1.2 kB view hashes)

Uploaded Source

Built Distribution

pgrep-2018.11.20-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page