Skip to main content

simple process manager

Project description

PMO - Process Manager Omni

A lightweight process manager inspired by PM2, but designed primarily for development environments.

Features

  • start, stop, and restart services, similar to PM2
  • Simple YAML configuration
  • Real-time logs with highlight
  • Environment variable support

Installation

pip install pmo

Usage

Quick Start

  1. Create a pmo.yml file in your project:
# Simple format, just like procfile
web-server: node server.js

# Detailed format
api-server:
  cmd: python api.py
  cwd: ./api
  env:
    NODE_ENV: development
  1. Start your services:
pmo start
  1. List your services:
pmo ls

Output:

+---------------------------------------------------------------------------------------------------------------------+
|  id  | name      |        pid |   uptime |   status    |        cpu |        mem |    gpu mem | gpu id | user       |
|------+-----------+------------+----------+-------------+------------+------------+------------+--------+------------|
|  0   | vllm-1    |     482950 |  25m 15s |   running   |       0.0% |        1mb |  20632 MiB |   0    | simpx      |
|  1   | sglang-1  |     482952 |  25m 15s |   running   |       0.0% |        1mb |  20632 MiB |   1    | simpx      |
|  2   | vllm-2    |     482954 |  25m 15s |   running   |       0.0% |        1mb |  20632 MiB |   2    | simpx      |
+---------------------------------------------------------------------------------------------------------------------+

Commands

  • Start: pmo start [all | service-name]
  • Stop: pmo stop [all | service-name]
  • Restart: pmo restart [all | service-name]
  • Logs: pmo log [all | service-name]
  • List: pmo ls

Configuration

The pmo.yml file supports two formats:

  1. Simple: service-name: command
  2. Detailed:
    service-name:
      cmd: command
      cwd: working directory (optional)
      env:
        KEY: value
    

PMO manages runtime data in the .pmo directory with logs and PID files.

License

MIT

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

pmo-0.3.8.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

pmo-0.3.8-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file pmo-0.3.8.tar.gz.

File metadata

  • Download URL: pmo-0.3.8.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pmo-0.3.8.tar.gz
Algorithm Hash digest
SHA256 ab28fed016f99d9f161f98bc1e0f3f3831362e1102d2a5978c2e762304575110
MD5 8b35fd01416906c3eca7686d9a8d6bb4
BLAKE2b-256 d26a4196c68cd1ebc3439b056d22db6dc82f8b66f9796c0d48fe6e02a7c70630

See more details on using hashes here.

File details

Details for the file pmo-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: pmo-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pmo-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 aa8a0b78e977ff4f0d9121c07c4c73397f010ca9135e37b608fd672005b69928
MD5 c50a55866254c1e8d534cc637d6225be
BLAKE2b-256 aa4bed56be8f4ac6fc4d2c6d3c63125db33ad6b4e39ec844accd171da16907f5

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