Skip to main content

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")
[]

python-readme-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-2019.4.13.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file pgrep-2019.4.13.tar.gz.

File metadata

  • Download URL: pgrep-2019.4.13.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for pgrep-2019.4.13.tar.gz
Algorithm Hash digest
SHA256 23e7358c4803c909e0231796831b7877836ee9d84ac90f0a4031babc7c606566
MD5 58b36de1808654d35774156073361327
BLAKE2b-256 b0b475e1cacb49568c09f709857aae9d2ef36cfcc5f20415d35cc0b1120542df

See more details on using hashes here.

Supported by

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