I would like to this in the use case of which I can keep my DB schema (of which are declared via classes) in SQLAlchemy. At the same time, I would like to various staticmethods or util methods to these objects. But I would like to keep the schema clean and just be schema. Is there a way of writing these additional methods that would allow me to declare methods outside the scope of the class? Thanks.
Share
Do you mean something like this (
lol()is a static “injected” method)?Your question is not entirely clear.