Technical writing about Python, Django, & Databases
🐙 Software Engineer at Kraken Technologies
I recently came across Python’s atexit module and became curious about practical use cases in real-world applications. To explore this, I created a simple client-server app: the client publishes data periodically, and the server consumes and stores it. A bit about atexit before we get into the app: The atexit module defines functions to register and unregister cleanup functions. Functions thus registered are automatically executed upon normal interpreter termination. In short, you can register functions with atexit to perform cleanup tasks when your Python application exits normally. ...