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

cli.mddocs/

Command Line Interface

Flask provides a CLI system for creating custom commands and managing applications from the command line.

Capabilities

CLI Functions

def with_appcontext(f: Callable) -> Callable: ...
def load_dotenv(path: str | None = None) -> bool: ...

CLI Classes

class FlaskGroup(click.Group): ...
class AppGroup(click.Group): ...

Usage Examples

Custom Commands

from flask import Flask
import click

app = Flask(__name__)

@app.cli.command()
def init_db():
    """Initialize the database."""
    click.echo('Database initialized')

@app.cli.command()
@click.argument('name')
def create_user(name):
    """Create a new user."""
    click.echo(f'User {name} created')

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