A simple framework for building complex web applications.
—
Quality
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Flask provides a CLI system for creating custom commands and managing applications from the command line.
def with_appcontext(f: Callable) -> Callable: ...
def load_dotenv(path: str | None = None) -> bool: ...class FlaskGroup(click.Group): ...
class AppGroup(click.Group): ...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