Is it possible to dynamically create classes in the __init__.py
file.
I'll give an example. Let's say I have this hierarchy:
script.py
module\
--> __init__.py
In the python file script.py
, I want to know if I can, with this call:
from module import my_class
dynamically create the my_class
definition in the __init__.py