Metadata-Version: 2.4
Name: flask-spa
Version: 0.1.7
Summary: A Flask middleware to support Single Page Application (SPA) features like custom events, dynamic titles, and file streaming.
Author-email: Martin Mohnhaupt <martin.mohnhaupt@etik.com>
Maintainer-email: Martin Mohnhaupt <martin.mohnhaupt@etik.com>
License-Expression: MIT
Requires-Python: >=3.13
Description-Content-Type: text/markdown
Requires-Dist: flask>=3.1.2

 # Flask SPA Middleware

A Flask middleware to support Single Page Application (SPA) features like custom events, dynamic titles, and file streaming.    

This middleware allows developers to easily integrate SPA functionalities into their Flask applications, enhancing the user experience by enabling dynamic content updates without full page reloads. 

It provides a simple interface for managing custom events, setting dynamic page titles, and handling file streaming in a way that is seamless and efficient. 

With this middleware, developers can create more interactive and responsive web applications using Flask. The middleware is designed to be easy to use and integrate, making it a valuable tool for Flask developers looking to enhance their applications with SPA capabilities. 

The middleware works by intercepting requests and responses in the Flask application, allowing it to modify the response headers to include custom events, dynamic titles, and file streaming information. 

This enables the frontend to react to changes in the backend without needing to reload the entire page, providing a smoother and more engaging user experience. 

The middleware also includes support for CORS headers, allowing for cross-origin requests from specified origins and methods, making it suitable for use in a variety of deployment scenarios. 

Overall, this middleware is a powerful addition to any Flask application looking to implement SPA features and enhance the interactivity of their web applications. 

> Generated by Copilot Free Usage
