tessl install tessl/pypi-flask-admin@1.6.0Simple and extensible admin interface framework for Flask
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.3x
Baseline
Agent success rate without this tile
66%
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.