So i got a hardcoded class in my python project for enum use/purposes like this:
class Actions(Enum):
go_to = 1
open = 2
close = 3
...
The class will not have any further functionality.
But I would like it to be more dynamic like the user to be able to define actions in a json file and then create the aforementioned Actions class from the json file (or any other file type).
Is this possible in python?
Thanks!