File size: 433 Bytes
653f79c
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# opted for sigleton as opposed to global variable

# Create a singleton object to hold all shared states
# This ensures that only one instance of the Config class is ever created
class Config:
    """ Single model_dict use across the app"""
    def __init__(self):
        self.model_dict = {}

# Create a single, shared instance of the Config class
# Other modules will import and use this instance.
config_load_models = Config()