{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/2"}],"enrichment":{"capability":"Provides thread and thread pool helpers that preserve Flask application context, allowing background threads to safely access flask.g and other context-local data.","skillfed_tags":["flask-extension","threading","context-management"],"use_cases":["Run background tasks (logging, cleanup, notifications) from a request handler while accessing request-specific data stored in flask.g.","Submit multiple worker tasks to a thread pool from within a Flask route, each task able to read application or request context.","Offload long-running work to a background thread without losing access to database sessions or user context stored in flask.g.","Implement worker patterns where context-aware cleanup or finalization must happen in a separate thread."],"what_it_does":"Flask-Threads solves a core problem when running background work in Flask: the application context is thread-local, so spawning a new thread normally causes an exception when that thread tries to access flask.g or other context-bound objects. This library wraps threading and concurrent.futures modules to carry the Flask application context into background threads, letting you safely read and write context data from worker threads.\n\nThe package provides helper classes that capture the current Flask context and push it into worker threads before execution. It depends only on Flask and is straightforward to integrate into existing Flask applications for background task patterns.","worth_installing":"Yes, with conditions. Install if you need to run background threads in Flask and must access application context from those threads. The package solves a real Flask threading problem with low install friction and no known vulnerabilities. However, verify the license before production use, and be aware that adoption is limited (29 stars), so community support and edge-case testing are minimal."},"id":"flask-threads","links":{"html":"https://skillfed.io/packages/flask-threads","md":"https://skillfed.io/packages/flask-threads.md","pypi":"https://pypi.org/project/flask-threads/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-05-20","license_spdx":null,"license_treatment":"unclear","name":"Flask-Threads","python_support":"unspecified","summary":"A helper library to work with threads within Flask applications."},"popularity":{"monthly_downloads":999453,"position":4540,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
