Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

fresco-flash provides a mechanism for displaying messages to end users in a web application. Messages can be sent across requests: you can generate a message in a view that returns a redirect response and the message will display on the next page loaded.

Example usage:

from fresco import FrescoApp
from fresco_flash import FlashMiddleware, flash

# Create a fresco app with the flash messaging middleware enabled
app = FrescoApp()

# Create some flash messages to be shown to the user'Thanks for signing up!')
flash.warn('Did you remember to feed the cat?')
flash.error('Too many elephants: increase bun supply before proceeding.')

# Display messages to the user
<py:for each="level, item in flash.messages()">
    <div class="message $level">$item</div>

Including HTML in messages

Messages are automatically escaped for HTML using MarkupSafe. If you want to include unescaped HTML in flash messages, wrap them in markupsafe.Markup first:

from markupsafe include Markup'<blink>Insert coin for new game</blink>'))


  • Initial release
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fresco-flash-0.1.tar.gz (5.1 kB) Copy SHA256 Checksum SHA256 Source Apr 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting