# Path: park_api/structs.py

# 
# Path: park_api/security.py
# def file_is_allowed(file):


import os
import importlib
import configparser
import sys
import subprocess
import logging
from park_api import structs, security
    "host": "::1",
    "debug": False,
    "live_scrape": True,
    "database_uri": "postgres:///park_api",
}


def is_production():
    return ENV == "production"


def is_development():
    return ENV == "development"


def is_testing():
    return ENV == "testing"


def is_staging():
    return ENV == "staging"


def load_cities():
    """
    Iterate over files in park_api/cities to add them to list of available cities.
    This list is used to stop requests trying to access files and output them which are not cities.
    """
    cities = {}
    path = os.path.join(APP_ROOT, "park_api", "cities")

# Path: park_api/structs.py

# 
# Path: park_api/security.py
# def file_is_allowed(file):


# Path: park_api/env.py
import os
import importlib
import configparser
import sys
import subprocess
import logging
from park_api import structs, security

    "host": "::1",
    "debug": False,
    "live_scrape": True,
    "database_uri": "postgres:///park_api",
}


def is_production():
    return ENV == "production"


def is_development():
    return ENV == "development"


def is_testing():
    return ENV == "testing"


def is_staging():
    return ENV == "staging"


def load_cities():
    """
    Iterate over files in park_api/cities to add them to list of available cities.
    This list is used to stop requests trying to access files and output them which are not cities.
    """
    cities = {}
    path = os.path.join(APP_ROOT, "park_api", "cities")

    for file in filter(security.file_is_allowed, os.listdir(path)):