Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_spa-0.1.10.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_spa-0.1.10-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file flask_spa-0.1.10.tar.gz.

File metadata

  • Download URL: flask_spa-0.1.10.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for flask_spa-0.1.10.tar.gz
Algorithm Hash digest
SHA256 7b46eab1020a467198006fdd07a7f5c232d6c7e5ac4ed1e95d1c1d3ad9eb533c
MD5 cb19f228547281aedf2b11ec2c3d3c66
BLAKE2b-256 a6e05d74c861838338dd784dca8f5bc9ba4742a96480ab4e37e0fcd2c53061ca

See more details on using hashes here.

File details

Details for the file flask_spa-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: flask_spa-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for flask_spa-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 868e8a57d12c3ea558b66e12ffd08d06a820d3d115b3d09d3e793994c43efcc2
MD5 e7e05ef811cdcfbbb6cce2f3df582025
BLAKE2b-256 56b87c9da0129c26e9952eed980e9b62e78c425bbadc33e0800a171e6dccafa9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page