Skip to main content

A simple, python-based process manager

Project description

pypm: A python-based process manager

💻 What is pypm?

pypm is a simple, python-based process manager. You can launch and monitor processes and their resources, automatically detect changes and log outputs. It keeps running after you close the console, which is very useful when dealing with remote sessions (for example, through ssh).

📥 How do I install it?

You can install pypm via pip with pip install python-pm

📖 How do I use it?

Basic use

To start a pypm instance, use the command python -m pypm init. For more info about this command, you can use python -m pypm init --help. This starts a server on your local machine which can be interacted with through the other commands. The next thing you're going to want to do is add a process to be monitored. You can use python -m pypm add [name] [command]. An example would be python -m pypm add server "python -m http.server 80", which would launch an HTTP server. To list all current processes, use python -m pypm list. To get the status of a specific process you can call python -m pypm status [name], which will display a table like the one below.

table

Killing processes is done using the kill instruction. All other options are listed on the help menu. Stopping the pypm instance will kill all running processes. There is a simple visual interface available with the command python -m pypm monit.

monit

On Linux it might be useful to add alias pypm="python3 -m pypm" to your bash profile so the command syntax becomes simpler.

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

python-pm-0.0.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_pm-0.0.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file python-pm-0.0.2.tar.gz.

File metadata

  • Download URL: python-pm-0.0.2.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for python-pm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 27538a548e438d69408b14ed904810ad9ff430bed7fe4f1e99b31933e373d249
MD5 c0021dc2c6ea7e8709cc21ff882d3391
BLAKE2b-256 4c9b753939ee806bd7bd136036ce6046f9b8134fa4a41e307e2d26a3a9ba0e03

See more details on using hashes here.

File details

Details for the file python_pm-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: python_pm-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for python_pm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23f9f8ba66b7fd675a62d233fcf7235ae4b85cc14f455be5a74d934b7dc7c43a
MD5 eb1ba904824f74ed8cdbf2050b241702
BLAKE2b-256 19bd398330e9dff3b2dae5134b82f826d7cc42d3d501000930960d8e59cf4adc

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