Skip to main content

Pure-Python client for PM2's daemon RPC socket

Project description

pm2-rpc

Pure-Python client for PM2's daemon RPC socket.

[!CAUTION] Experimental (v0.1.0) — Early-stage personal project. The API will change without notice.

Talks directly to the ~/.pm2/rpc.sock Unix socket using PM2's pm2-axon / pm2-axon-rpc wire stack (AMP framing -> amp-message arg packing -> axon-rpc body). No pm2 CLI shell-out for the common cases.

Quick Start

import pm2

for p in pm2.list():
    print(p.pm_id, p.name, p.status)

pm2.stop("worker")
pm2.delete("worker")

Installation

pip install pm2-rpc

Requires Python >= 3.12 and a running PM2 daemon on the same host.

Development

uv sync --group dev
uv run pytest tests/        # requires a real PM2 daemon

License

MIT — see LICENSE.

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

pm2_rpc-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

pm2_rpc-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pm2_rpc-0.1.0.tar.gz.

File metadata

  • Download URL: pm2_rpc-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pm2_rpc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8133d33fa5fc86ca6397c66ca62839b39edbdc12f2441e9df87312f20b386b20
MD5 0519e78d0dc57c2dc546c259c01c26c7
BLAKE2b-256 9362ee4c97fa27144ec8bb8e8a1e926ec8833b976f993fcbcf8b27384eff4ea7

See more details on using hashes here.

File details

Details for the file pm2_rpc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pm2_rpc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pm2_rpc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ecf1118e5c2c3aab7e678b765fde9d6fdb438f8986fb80b7c22cb5335aa09ea
MD5 66083adedef535f487236cd6cf7a2ef9
BLAKE2b-256 a16f8b5fcbfca2a0f7f0864f1ee4d4e2261437216a734fb5aa1078ec55419334

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