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
{
"context": "This criteria evaluates how well the engineer uses Flask-Admin's form generation and customization features to build a product catalog admin interface. The focus is on proper use of ModelView configuration attributes, form_args for field customization, form widgets, validators, and form_rules for layout organization.",
"type": "weighted_checklist",
"checklist": [
{
"name": "ModelView inheritance",
"description": "ProductAdmin class inherits from flask_admin.contrib.sqla.ModelView to enable Flask-Admin's form generation capabilities",
"max_score": 10
},
{
"name": "Model scaffolding",
"description": "Product model is registered with Admin using admin.add_view(ProductAdmin(Product, db.session)), enabling automatic form generation from the SQLAlchemy model",
"max_score": 10
},
{
"name": "Field exclusion",
"description": "Uses form_create_rules or form_excluded_columns to exclude the created_at field from the create form",
"max_score": 10
},
{
"name": "Widget customization",
"description": "Uses form_widget_args to configure the description field as a textarea with rows=5 (e.g., form_widget_args = {'description': {'rows': 5}})",
"max_score": 15
},
{
"name": "Custom labels",
"description": "Uses form_args to set a custom label for the name field (e.g., form_args = {'name': {'label': 'Product Name'}})",
"max_score": 10
},
{
"name": "Field descriptions",
"description": "Uses form_args to add a description to the sku field (e.g., form_args = {'sku': {'description': 'SKU must be unique'}})",
"max_score": 10
},
{
"name": "Price validation",
"description": "Uses form_args with WTForms validators (e.g., NumberRange(min=0.01) or custom validator) to ensure price is greater than 0",
"max_score": 10
},
{
"name": "Stock validation",
"description": "Uses form_args with WTForms validators (e.g., NumberRange(min=0) or custom validator) to ensure stock_quantity is not negative",
"max_score": 10
},
{
"name": "Form layout rules",
"description": "Uses form_rules or form_create_rules with FieldSet objects to organize fields into three sections: 'Basic Information' (name, sku, category), 'Details' (description, price, stock_quantity), and 'Status' (is_active)",
"max_score": 15
}
]
}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