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
Build a simple book library admin interface that allows users to search for books using various pattern matching techniques.
Create a Flask application with an admin interface for managing a book library. The application should support searching books by multiple criteria with different pattern matching options.
Implement a Book model with the following fields:
id: Integer, primary keytitle: String (200 characters max), requiredauthor: String (200 characters max), requiredisbn: String (20 characters max), uniquepublisher: String (100 characters max)published_year: Integerdescription: TextImplement search capability that allows users to find books using:
= prefix) for ISBN lookups^ prefix) for publisher searchesThe search should work across multiple columns simultaneously and return results that match the search term in any of the configured searchable fields.
Set up an admin interface with:
@test Create a test file test_search.py that verifies:
Default Contains Search: Search for "Python" should find books with "Python" anywhere in title, author, publisher, or ISBN
Exact Match Search: Search for "=978-0134685991" should find only the book with exactly that ISBN
Starts-With Search: Search for "^O'Reilly" should find books from publishers starting with "O'Reilly"
Case-Insensitive Search: Search for "python" (lowercase) should find books with "Python" (capitalized) in any field
Web framework for building the application.
Admin interface framework with search functionality.
Database ORM integration for Flask.
app.py) with the Book model and admin interface configuredtest_search.py) implementing the four test casesThe solution should demonstrate proper configuration of search capabilities including pattern matching options.
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