A simple Flask extension implements the similar function as Django's message framework.