README
liblaf.cherries.profiles
¶
Type Aliases:
-
ProfileLike–Profile selector accepted by
factory. -
ProfileName–Registered profile name.
Classes:
-
Profile–Base class for named run profiles.
-
ProfileDebug–Profile for local/debug runs with remote and commit side effects disabled.
-
ProfileDefault–Profile for regular runs with Comet, Git commits, local snapshots, and logs.
Functions:
-
factory–Resolve a profile name, instance, class, or environment default.
ProfileLike
¶
ProfileLike = ProfileName | Profile | type[Profile]
Profile selector accepted by factory.
Profile
¶
ProfileDebug
¶
Bases: Profile
flowchart TD
liblaf.cherries.profiles.ProfileDebug[ProfileDebug]
liblaf.cherries.profiles._abc.Profile[Profile]
liblaf.cherries.profiles._abc.Profile --> liblaf.cherries.profiles.ProfileDebug
click liblaf.cherries.profiles.ProfileDebug href "" "liblaf.cherries.profiles.ProfileDebug"
click liblaf.cherries.profiles._abc.Profile href "" "liblaf.cherries.profiles._abc.Profile"
Profile for local/debug runs with remote and commit side effects disabled.
Methods:
-
init–Register disabled Comet, non-committing Git, local, and logging plugins.
init
¶
init() -> Run
Register disabled Comet, non-committing Git, local, and logging plugins.
Source code in src/liblaf/cherries/profiles/_debug.py
ProfileDefault
¶
Bases: Profile
flowchart TD
liblaf.cherries.profiles.ProfileDefault[ProfileDefault]
liblaf.cherries.profiles._abc.Profile[Profile]
liblaf.cherries.profiles._abc.Profile --> liblaf.cherries.profiles.ProfileDefault
click liblaf.cherries.profiles.ProfileDefault href "" "liblaf.cherries.profiles.ProfileDefault"
click liblaf.cherries.profiles._abc.Profile href "" "liblaf.cherries.profiles._abc.Profile"
Profile for regular runs with Comet, Git commits, local snapshots, and logs.
Methods:
-
init–Register the production plugin set on the process-global run.
init
¶
init() -> Run
Register the production plugin set on the process-global run.
Source code in src/liblaf/cherries/profiles/_default.py
factory
¶
factory(profile: ProfileLike | None = None) -> Profile
Resolve a profile name, instance, class, or environment default.
Parameters:
-
profile(ProfileLike | None, default:None) –Explicit profile selector. When omitted,
DEBUG=1selects the debug profile; otherwisePROFILEdefaults todefault.
Returns:
-
Profile–Instantiated profile object.