# api keys are in config.ini to keep them out of github
import configparser
config = configparser.ConfigParser()
config.read('config.ini')
# print out the sections in the config file
print(f'The config file has the following sections: {config.sections()}')
try:
air_visual_api_key = config['AirVisual']["api_key"]
except KeyError:
print("Missing Key AirVisual in the config_air.ini file")
if air_visual_api_key is not None:
print("Successfully imported airvisual api key")