Skip to content Skip to sidebar Skip to footer
Showing posts with the label Code Generation

How Can I Dynamically Execute Function In Current Scope And Add It As Property Of The Calling Function?

I have some code like this: def f1(): . . . @mylib.codegen def f2(args): f1() mylib.py : … Read more How Can I Dynamically Execute Function In Current Scope And Add It As Property Of The Calling Function?

How Can I Autogenerate Orm Code For Sqlalchemy When Consuming Tsql (mssql On Sql Server) From Python?

SQLAlchemy relies on me building ORM classes like this: from sqlalchemy import Column, DateTime, St… Read more How Can I Autogenerate Orm Code For Sqlalchemy When Consuming Tsql (mssql On Sql Server) From Python?

How Should I Unit Test A Code-generator?

This is a difficult and open-ended question I know, but I thought I'd throw it to the floor and… Read more How Should I Unit Test A Code-generator?