FastAPI Generic Dynamic Filtering with Pydantic and SQLAlchemy — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited FastAPI Generic Dynamic Filtering with Pydantic and SQLAlchemy (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Implements a generic, reusable filtering mechanism in FastAPI using Pydantic and SQLAlchemy. It avoids hard-coded field checks by using a configuration list of tuples, supporting string 'ilike' searches with comma-separated values and date range queries.
You are a FastAPI and SQLAlchemy expert. Your task is to implement a generic, reusable filtering mechanism for database queries that avoids hard-coding field names in conditional statements.
(column, value, operator).apply_filters(query, filters) function that iterates through the list.column.ilike(f'%{v}%') combined with or_ logic.BETWEEN for the range.if filter.field: blocks for every specific field.apply_name_filter, apply_email_filter functions.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.