PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.
Why do you think that https://github.com/vramework/postgres-typed is a good alternative to PyPika