def get_api_key():
    ' Get secret api key from a file on filesystem '
    paren_dir = os.path.dirname(os.path.realpath(__file__))
    api_path = os.path.join(paren_dir, 'weather_api.txt')
    with open(api_path, 'r') as file:
        api_key = file.read().replace('\n', '')
    return api_key
Get secret api key from a file on filesystem
def get_api_key():
    '  '
    paren_dir = os.path.dirname(os.path.realpath(__file__))
    api_path = os.path.join(paren_dir, 'weather_api.txt')
    with open(api_path, 'r') as file:
        api_key = file.read().replace('\n', )
    return api_key