Flask-Threads

JSON →
library 0.2.0 ·python
verified May 22, 2026

Flask-Threads is a helper library designed to simplify working with threads within Flask applications. It addresses the common challenge of maintaining the Flask application context (e.g., `flask.g`, `request`) when executing code in background threads or using concurrent futures, which are typically thread-local. The library ensures that thread-local proxies remain accessible, preventing `RuntimeError` exceptions that occur when trying to access context outside the main request thread. The current version is 0.2.0, released on May 20, 2025, with an infrequent release cadence, primarily focusing on Flask compatibility.

total hits 9
actors 5 distinct systems
last hit 5d ago Script
GPTBot
2
Script
2
ChatGPT-User
1

top countries 🇺🇸 United States · 🇺🇦 Ukraine · 🇩🇪 Germany · 🇫🇷 France · 🇨🇦 Canada