[PyPika](https://github.com/kayak/pypika) is a SQL command builder. It could replace the custom SQL command builder of pyxray.