[DEFAULT]API_KEY = "ac:5f:de:32:4a:1c"API_CONCURRENT_USERS = 10[SERVER]USE_SSL = TrueFORCE_SSL = 0ALLOWED_PORTS = 8080,8096,4443 # for use in lists
# Configs can have multiple sectionsDEFAULT = config['DEFAULT']SERVER = config['SERVER']
# Get values of the configAPI_KEY = DEFAULT.get('API_KEY',"dont_use_api")# Getting booleanUSE_SSL = DEFAULT.getboolean('USE_SSL', False)# user can put 0,1 or True, False# Getting float or intPORT = DEFAULT.getint('PORT', 8080)API_CONCURRENT_USERS = int(DEFAULT.get('API_CONCURRENT_USERS', 10))