Just got finished setting up sqlc tooling for a monorepo with Go and Python. Now it will generate code for each language based on a single set of *.sql files with query statements. Python support is just beta, but these queries are not complicated.
https://sqlc.dev
https://github.com/sqlc-dev/sqlc-gen-python
Edited 6d ago