"""Features logic.""" from artwork.connectors.splitio import splitio_client def is_enabled(treatment: str, attributes: dict) -> bool: """Check if feature is enabled.""" return splitio_client.get_treatment('key', treatment, attributes) == 'on'