Registry / devops / kantoku

kantoku

JSON →
library0.18.3pypypi✓ verified 80d ago

A process manager built on top of Circus for running and monitoring multiple processes and sockets. Current version 0.18.3, actively maintained with recent updates for Python 3.13 support and reliability fixes.

pip install kantoku
INSTALL
IMPORT
SIG · KANTOKU
K
kantoku
devopspythonv0.18.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ArbiterHandler
from circus import ArbiterHandler
from kantoku.circus import ArbiterHandler
get_arbiter
from circus import get_arbiter
from kantoku.circus import get_arbiter

Create a simple watcher and start the arbiter. Replace cmd with your own command.

from kantoku import Arbiter, Watcher watcher = Watcher( name="my_app", cmd="python -m http.server 8000", numprocesses=1, ) arbiter = Arbiter( watchers=[watcher], ) arbiter.start()
kantoku --version
Debug
Known issues
breakingIn version 0.18.0, the arbitter's quit_on_failure behavior changed to quit when any watcher fails. Previous versions allowed continued operation.
fix
Upgrade to >=0.18.2 or set `quit_on_failure=False` on the Arbiter.
affects: >=0.18.0,<0.18.2
gotchaWatcher commands are run as shell commands (via subprocess). Ensure proper quoting and escaping to avoid injection or argument parsing issues.
fix
Use lists or shlex.quote() for commands with arguments, e.g., cmd=['python', '-m', 'http.server', '8000'] instead of a string.
affects: all
Upgrade
Version history
0.18.3latest on PyPI · released Mar 11, 2025
Audit
Dependencies
circusrequiredCore dependency for process management
Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
kantoku — pip install kantoku · libregistry