Found 35 repositories(showing 30)
wbenny
Example of a Python code that implements graceful shutdown while using asyncio, threading and multiprocessing
JoeAlamo
Example of a Python multiprocessing implementation to manage worker processes, allowing for graceful shutdowns
grintor
A python library for handling graceful shutdown in response to CTRL_C_EVENT, CTRL_BREAK_EVENT, CTRL_CLOSE_EVENT, WM_CLOSE, and WM_ENDSESSION
turnbullerin
Tools to support graceful shutdowns in Python
Pi2Design
The CSB503HTA includes a power switch on its volume knob, and circuitry to allow the Pi to shutdown gracefully when the switch is clicked off. This Python script sets up the proper GPIOs to enable this behavior.
zizumara
A Python script to initiate graceful shutdown on a Raspberry Pi by monitoring a GPIO pin
mosesborore
A simple Python utility to start an HTTP server on a free port, with improved port detection and graceful shutdown.
ProgrammerPlus1998
A decorator-based Python library for automatic Nacos service registration, heartbeat management, and graceful shutdown — with built-in retry and self-healing support.
geniussoul
A simple utility script written purely in Python to gracefully restart or shutdown your computer through command-line interaction. It leverages Python’s built-in os module to execute system commands, providing an easy way to automate these power operations without any external dependencies.
Complete Linux server reboot management toolkit: systemd shutdown hooks for graceful Docker container termination, 13-phase boot orchestration with retry logic and dependency management, JSON-based system snapshots with comparison tooling, and automated post-reboot verification. Bash + Python, production-tested.
lucas-code42
No description available
RyanDirgantara
No description available
andriisoldatenko
Different python examples from my "Graceful shutdown" talk
maxeonyx
Demo code for a talk on graceful async shutdown in Python asyncio
maosproject-dev
Python sdk that runs inside a container and setups telemetry and graceful shutdown handling
jeffrey82221
The atexit package of python can use to accomplish graceful shutdown. Nice to study it!
cracked-machine
A Python utility for managing iperf3 server and client processes as background tasks with automatic logging and graceful shutdown handling.
remotecynr
A modular, cross-platform keylogger in Python — logs keystrokes, active windows, modifiers, and more with smart buffering and graceful shutdown.
moijafcor
Lightweight Python daemon that monitors an APC UPS via apcupsd NIS and initiates a graceful host shutdown when running on battery.
wijits36
Python daemon that monitors a UPS via NUT and orchestrates graceful shutdown and recovery of Scale Computing HyperCore VMs and clusters
Farichaa
A high-performance concurrent worker pool for Python with support for task channels, graceful shutdown, and automatic retries with exponential backoff.
sahibzada-sakib
Shutdown-Restart-Logout Python Script 🚀 A simple Python script for managing system actions like shutdown, restart, and logout. Perfect for automation or integration into your projects. Features: Shutdown: Gracefully shuts down your computer. Restart: Initiates a system restart. Logout: Logs out of the current user session.
sandeepkrishnams
This repository contains a minimal, practical Python async web server skeleton with production considerations: TLS, graceful shutdown, middleware, routing, and worker process model.
Anuar-boop
Lightweight zero-dependency Python cron scheduler. Define jobs with cron expressions, timezone support, overlap prevention, retries, and graceful shutdown. Use as library or CLI.
ViShEsHK2412
CLI tool that recursively scans directories and detects duplicate files using content hashing. Built with Python, Typer and uv. Supports dry-run mode and graceful shutdown.
seijurogg
Python automation bot for Monad Spin on Farcaster platform. Features: automated spinning, wallet transaction handling, real-time statistics, graceful shutdown, anti-detection mechanisms. Uses Playwright for browser automation. Educational project
coti-io
coti-safesync-framework — A Python toolkit for safe, concurrent MySQL writes and reliable Redis Streams consumption across multiple hosts, featuring configurable locking strategies, distributed-safe queue workers, and graceful shutdown support.
MMaitland1
BasicCommunicationServer is a repository featuring chat server implementations in Go, C, and Python, supporting multi-client communication with real-time messaging and graceful disconnections. Each version highlights network programming differences, offering message broadcasting and smooth shutdown handling.
ByteScrape
This Python script allows you to export all messages from a specific Discord channel to a JSON file. It uses the Discord API and handles rate limits, network errors, and graceful shutdowns to ensure reliable data extraction.
wjlc-git
Python script for basic async DDoS protection on Linux. It monitors IP connection rates, blocks IPs exceeding limits via iptables, unblocks them after cooldown, supports simulated or real traffic (tcpdump), logs actions, and handles graceful shutdown. Requires root and Python 3.7+.