maple.utils.misc.parse_policy_env

maple.utils.misc.parse_policy_env(spec: str) Tuple[str, str]

Parse policy@env shorthand specification.

Parses a combined policy and environment specification in the format ‘policy@env’ and returns the individual components. This shorthand format is used for convenience in CLI commands that need both a policy and environment.

Parameters:

spec – Specification string in format ‘policy@env’.

Returns:

Tuple of (policy_name, env_name) extracted from the spec.