Centralize all static variable/object/constant variables (not sensitive) into a config module or file (eg src/config.py). In this way, we can find/manage/share common objects more easily into the project.
If the config module/file increase or have sensitive variables in future, we can create config submodules/subfiles or read from OS environment.
Centralize all static variable/object/constant variables (not sensitive) into a config module or file (eg
src/config.py
). In this way, we can find/manage/share common objects more easily into the project.If the config module/file increase or have sensitive variables in future, we can create config submodules/subfiles or read from OS environment.
Some refs: