def get_features()

in services/ui_backend_service/features.py [0:0]


def get_features():
    """
    Get a dict of features that are enabled or disabled for the process

    Returns
    -------
    Dict
        example:
        {
            "FEATURE_SOME_FEAT": True
        }
    """
    features = {}
    for key, val in os.environ.items():
        if key.startswith(FEATURE_ENV_PREFIX):
            val = val.lower()
            features[key] = val != '0' and val != 'false' and val != 'f'
    return features