Profile
profile
current_profile()
Return the active, lexically validated state profile.
Source code in packages/axm-config/src/axm_config/profile.py
profile_config_path()
Return the config store path for the active profile.
profile_env()
profile_root()
profile_root_for(profile)
Return the state root of profile, or None for the default one.
The named counterpart of :func:profile_root: it answers for an arbitrary
profile instead of the active one, so a caller can ask what a profile
would use without mutating AXM_PROFILE. Pure computation -- the root
hangs below :func:axm_home_path, so no directory is created, and the
deliberate asymmetry is preserved: AXM_HOME only selects the
config.toml that is read, never this convention.
Source code in packages/axm-config/src/axm_config/profile.py
validate_profile_name(name)
Return a valid profile name or raise :class:ConfigError.