{"categories":[{"label":"Distributed Computing","url":"https://skillfed.io/packages/category/system-distributed-computing/2"}],"enrichment":{"capability":"Cotyledon provides a framework for building long-running services with Unix signal handling, worker process spawning, supervision, daemon reloading, and rate-limited worker lifecycle management.","skillfed_tags":["process-management","daemon-framework","signal-handling"],"use_cases":["Build a telemetry or monitoring agent that spawns multiple worker processes to collect metrics from distributed systems.","Create a message queue consumer service that scales horizontally by spawning workers to handle incoming tasks.","Implement a daemon that reloads configuration on SIGHUP without restarting child processes or losing in-flight work.","Develop a long-running background job processor that needs clean signal handling and process supervision.","Run a service in a container or systemd environment where predictable process lifecycle and sd-notify support matter."],"what_it_does":"Cotyledon is a framework for building long-running services that need to manage multiple worker processes, handle Unix signals cleanly, and reload configuration without restarting. It was created as an alternative to oslo.service for projects that don't want eventlet's greenlet overhead; instead, it uses Python's standard multiprocessing module, ensuring predictable behavior across single-worker and multi-worker deployments. The framework handles worker spawning, supervision, graceful termination, daemon reloading on SIGHUP, rate limiting for worker creation, and sd-notify integration.\n\nYou use Cotyledon by subclassing its ServiceManager and defining your service logic. It manages the lifecycle of child processes, ensures only one service manager runs at a time (via a seatbelt mechanism), and provides separate APIs for terminating child processes versus the master process. Unlike frameworks built on eventlet, Cotyledon's code path is identical whether you run one worker or many, and it supports non-POSIX platforms through multiprocessing rather than os.fork alone.","worth_installing":"Yes. Cotyledon is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem for services that need multiprocess management without eventlet's overhead. It is well-suited for OpenStack-style telemetry and monitoring workloads, and more broadly for any daemon or long-running service that needs robust worker lifecycle and signal handling. Install it if you are building a service that spawns multiple workers and want clean, predictable process management."},"id":"cotyledon","links":{"html":"https://skillfed.io/packages/cotyledon","md":"https://skillfed.io/packages/cotyledon.md","pypi":"https://pypi.org/project/cotyledon/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-23","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"cotyledon","python_support":"supports_current","summary":"Cotyledon provides a framework for defining long-running services."},"popularity":{"monthly_downloads":198438,"position":9730,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
