ASEProfile

class ase2sprkkr.profiles.ASEProfile(profiles, ase_config)[source]

Editable, virtual view of ASE’s [sprkkr] configuration.

Values are edited in memory and saved explicitly to ASE’s own configuration file using store_permanent() or the root save_user_preferences(). The ASE profile is never stored in YAML.

Class hierarchy

Inheritance diagram of ase2sprkkr.profiles.ASEProfile


Constructor

__init__(profiles, ase_config)[source]
name = 'ase'
source = 'ase'
read_only = False
property _section
configuration_profile()[source]

Return a typed view without changing the ASE configuration.

property command
as_dict(*args, **kwargs)[source]
get(*args, **kwargs)
static _ini_value(value)[source]

Represent a typed profile value for ASE’s INI parser.

_edit(changes=None, *, remove=())[source]

Validate a proposed ASE profile and stage the change in memory.

set(values=None, **kwargs)[source]

Validate and stage ASE profile fields without saving to disk.

unset(name)[source]

Stage removal of one ASE profile field without saving.

store_permanent(*, system=False)[source]

Persist all staged ASE fields to ASE’s authoritative INI file.

set_permanent(values=None, *, system=False, **kwargs)[source]

Set and persist ASE profile fields in one operation.