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, andrestartservices, similar to PM2- Simple YAML configuration
- Real-time logs with highlight
- Environment variable support
Installation
pip install pmo
Usage
Quick Start
- Create a
pmo.ymlfile 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
- Start your services:
pmo start
- 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:
- Simple:
service-name: command - 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
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
pmo-0.3.7.tar.gz
(20.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pmo-0.3.7-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file pmo-0.3.7.tar.gz.
File metadata
- Download URL: pmo-0.3.7.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b30b38aa6a31209505eaa25f0ed96bfc7423ad064566adab57b4570adb6e3f11
|
|
| MD5 |
2b8f60af3b724d59d45fb5b5f6a6c8a1
|
|
| BLAKE2b-256 |
e16fd07794d773906d2da02bf42c8be38fcb4c92a398d4ed394e147228bd44a1
|
File details
Details for the file pmo-0.3.7-py3-none-any.whl.
File metadata
- Download URL: pmo-0.3.7-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00747e90d22903c74ebc12dc1f19475d6c2d0832295075a1c9323e3db1641e9c
|
|
| MD5 |
4513acb610501db2101c5cf472ee0620
|
|
| BLAKE2b-256 |
7bde046ce179cc35e834e6ec56b9e50012a94fdb2eea166d2bb108606e8e2cb3
|