mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
7967b20232
- sort_items(items, spec, *, allowed=None): name,-created spec, multi-key, None-last; allowed= allowlist (out-of-list or incomparable field -> 400). parse_sort exposed for DB-side sorting. - filter_items(items, filters): field==value equality, skips None values so optional Query markers pass through. - In-memory (dicts or objects), no ORM coupling; completes the filter -> sort -> paginate pipeline. Docs + tests. Backwards-compatible. 567 tests pass; ruff + mypy clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>