Skip to content

Instantly share code, notes, and snippets.

View timreibe's full-sized avatar
🌞

Tim Reibe timreibe

🌞
View GitHub Profile
### Keybase proof
I hereby claim:
* I am timreibe on github.
* I am timreibe (https://keybase.io/timreibe) on keybase.
* I have a public key whose fingerprint is 1B7F E6FA E1F9 A8BB A282 3BDF E2A4 8637 4241 64FC
To claim this, I am signing this object:
@timreibe
timreibe / fastapi-lhs-query-params.py
Last active June 18, 2025 15:43
FastAPI Sorting and Filtering with LHS Brackets
import re
from enum import auto
from typing import List
import uvicorn
from fastapi import Depends, FastAPI, Request
from fastapi_utils.enums import StrEnum
from pydantic import BaseModel, create_model
from pydantic.fields import FieldInfo
from sqlalchemy import String, Table, cast