In order to make Backend-frontend integration easier and smoother, move all string names of pubsub topics and snesor types to a single Constants.py file or Enums.
Possible solution:
Possible storage files:
- Python Enums
.env file
.ini config file and python configparser (May be the best option, for future integration, other system settings can be stored here!)
In order to make Backend-frontend integration easier and smoother, move all string names of pubsub topics and snesor types to a single Constants.py file or Enums.
Possible solution:
src/toolswith those constants/create Enums for each (seesrc/tools/status.pyfor an example)Possible storage files:
.envfile.iniconfig file and python configparser (May be the best option, for future integration, other system settings can be stored here!)