SQLite best practices for Python -- PRAGMAs per connection, context manager transactions, parameterized queries, row_factory, executemany, FK indexes
92
90%
Does it follow best practices?
Impact
97%
1.73xAverage score across 5 eval scenarios
Passed
No known issues
A small community library needs a book lending management system built with Python and FastAPI. Use SQLite for the database (runs on a single Raspberry Pi at the front desk).
The system needs:
Produce:
app/db.py -- Database connection and schema initializationapp/schemas.py -- Pydantic modelsapp/books.py -- Book-related endpointsapp/loans.py -- Loan-related endpointsapp/main.py -- FastAPI applicationrequirements.txt -- With dependenciesComplete Python code, no placeholders or TODO comments.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
sqlite-python-best-practices
verifiers