Simple and extensible admin interface framework for Flask
86
Quality
Pending
Does it follow best practices?
Impact
86%
1.30xAverage score across 10 eval scenarios
Create a simple product management admin interface for a Flask application that supports multiple languages (English and Spanish). The interface should allow users to view and manage products, with all UI elements properly translated based on the user's language preference.
Build a Flask-Admin interface with the following features:
Product Model: A simple product model with the following fields:
Admin Interface: Create an admin view for the Product model with:
Language Support: The application should support:
Test Implementation: Write tests to verify:
@generates
from flask import Flask
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from flask_sqlalchemy import SQLAlchemy
class ProductView(ModelView):
"""
Admin view for Product model with internationalization support.
Should configure column_labels with translated strings for supported languages.
Should use appropriate translation functions to enable language switching.
"""
pass
def create_admin_interface(app: Flask, db: SQLAlchemy) -> Admin:
"""
Create and configure the Flask-Admin interface with i18n support.
Args:
app: Flask application instance
db: SQLAlchemy database instance
Returns:
Configured Admin instance with ProductView registered
"""
passProvides admin interface framework with internationalization support.
Provides internationalization and localization support for Flask applications.
Provides SQLAlchemy integration for Flask.
Install with Tessl CLI
npx tessl i tessl/pypi-flask-admindocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10