I write an open source software named 'mybatis-py', it is hosted on github, the address is mybatis. Maybe it can help you.