I would like to know how this can be implemented in sqlalchemy. Well, for example, I want to do some sort of data processing, or choose a manager for the behavior of the class, depending on the contents of the fields.
As I understand it, sqlalchemy uses the default class constructor during data loading, and there is no point in writing some operations in init .