Skip to main content

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

Metadata

Release files for flask-spa 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-spa 0.1.13
File Size Uploaded
flask_spa-0.1.13.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-spa 0.1.13
File Interpreter ABI Platform
flask_spa-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 24.5 kB

Release files / flask_spa-0.1.13.tar.gz

Download URL flask_spa-0.1.13.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b27da9bf659f75b829a19585d7bb5e5167c2573c036a89c7276c1c595535aadf
BLAKE2b-256 checksum
How to use checksums
bb135c729b4f1f4fbc8a07f9a944663a6acd7707601de42f7df88de25341735b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / flask_spa-0.1.13-py3-none-any.whl

Download URL flask_spa-0.1.13-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5f62d1ad6a9898b13748fd535be1ccadfb3c34795ccdc5c9c72a431b68cf681
BLAKE2b-256 checksum
How to use checksums
ae69b64169b13e319708910b3df0dd3c0fd12c6e4c64f003feca2e0e3da459fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.13 This release

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page