CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-flask

A simple framework for building complex web applications.

Pending

Quality

Pending

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

Overview
Eval results
Files

signals.mddocs/

Signals

Flask provides a signals system for hooking into the application lifecycle and request processing events.

Capabilities

Signal Objects

template_rendered: NamedSignal
before_render_template: NamedSignal
request_started: NamedSignal
request_finished: NamedSignal
request_tearing_down: NamedSignal
got_request_exception: NamedSignal
appcontext_tearing_down: NamedSignal
appcontext_pushed: NamedSignal
appcontext_popped: NamedSignal
message_flashed: NamedSignal

Usage Examples

Basic Signal Usage

from flask import Flask
from flask.signals import request_started

app = Flask(__name__)

def log_request(sender, **extra):
    print(f"Request started for {sender.name}")

request_started.connect(log_request, app)

Install with Tessl CLI

npx tessl i tessl/pypi-flask

docs

blueprints.md

cli.md

configuration.md

context-globals.md

core-application.md

helpers.md

index.md

json-support.md

request-response.md

routing.md

sessions.md

signals.md

templates.md

testing.md

tile.json