Skip to main content

Test Suite Package version Supported Python versions

supervisor-gateway

A RESTful supervisor gateway with paginated and cached process info

Features

  • RESTful API to supevisord support
  • A eventlistener role for events subscription
  • Cached status API with pagination

Architecture

supervisor-gateway

Install

from pypi

pip install supervisor-gateway

or install locally

make install

Usage

supervisor-gateway running as child process of supervisord, there is a supervisor config example

[eventlistener:supervisor_gateway]
command = python -m supervisor_gateway
events = PROCESS_STATE,SUPERVISOR_STATE_CHANGE,PROCESS_GROUP
environment = SG_LOG_LEVEL="DEBUG",SG_RPC="http://localhost:9011/RPC2",SG_LOG_FILE=
              "supervisor_gateway.log",SG_HOST="localhost",SG_PORT="1234"
stderr_logfile = supervisor_gateway.err.log
stderr_logfile_maxbytes = 10MB
stderr_logfile_backups = 2
buffer_size = 1024

some supported environments blow:

  • SG_HOST: listen host
  • SG_PORT: listen port
  • SG_RPC: supervisord rpc url
  • SG_LOG_LEVEL: log level
  • SG_LOG_FILE: log file

update supervisor conf

supervisorctl update supervisor_gateway

check it

curl  http://localhost:1234/rpc/state  

interact with api document in the browser http://localhost:1234/docs

TODO

  • Add unit test
  • Add more API
  • Add API documents

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments

Metadata

Release files for supervisor-gateway 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supervisor-gateway 0.4.0
File Size Uploaded
supervisor-gateway-0.4.0.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for supervisor-gateway 0.4.0
File Interpreter ABI Platform
supervisor_gateway-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.2 kB

Release files / supervisor-gateway-0.4.0.tar.gz

Download URL supervisor-gateway-0.4.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e10e3e5b7c37270d2e2bea9ba3e0e9af51d582f760154668b82e4aeceeeb3010
BLAKE2b-256 checksum
How to use checksums
a0855f3002dabf5bb96f71884940e913cfa813bcbe88c7b8e90a629ef41dfc84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

Release files / supervisor_gateway-0.4.0-py3-none-any.whl

Download URL supervisor_gateway-0.4.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea387808d075ef407f25db9125e1a528d30f34d3099a3dc2a7efbb6f293b31d4
BLAKE2b-256 checksum
How to use checksums
c62bb71250dbce20915fdf3e88242620ceba397b574f268a5ff31badb27b70d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page