In Python write raw SQL statements, which PGTyped Pydantic will watch for and automatically generate Pydantic models from your database schema - also automatically typing your Python code for you.
I want to be able to write raw SQL statements in Python, and be able to automatically get correct typed query responses as Pydantic models.
Forked the PGTyped library - overhauled typescript type generation to Pydantic models. Built a LibCST parser that would watch for special sql invocations and automatically add Pydantic model return types generated by the PGTyped Pydantic library.