Cheatsheet#
As a convenience, all modifiers, utility functions and overridables that are useful within *.solconf files are gathered inside module soleil.solconf and linked in the tables below.
Modifiers#
Modifers for class and module members
The member should not be passed as an argument to type |
|
The member should be passed as a type arg |
|
Change the name of the member when passed as a type arg |
|
Used to format the value after pre-processing but before resolution |
|
Indicates that the specified member should not be used by |
|
Annotates a variable containing a class or callable (or the fully qualified name of one) that will be used to instantiate the meta object. |
|
The member is a list or tuple containing variable un-named args to pass to the |
Modifers for module members
Indicates that the annotated member is a callable that |
|
When a module's member is annotated as promoted it will be returned when that module is loaded without resolving. |
|
When a module's member is annotated as |
Utility functions#
|
A special class that resolves to an id string built from the overrides that are not annotated with |
Returns the path to the root config |
|
|
Returns the stem of the filename name of the root configuration. |
|
Returns a sub-directory with a sequential number |
|
Derives the specified class, overloading the supplied indicated members. Example::. |
|
User-callable function to create and return a unique temporary directory. |
|
Takes the name of a target module that promotes a class, and loads it in a new package (the spawned package), by default providing the calling package's overrides as possible overrides in the spawned package. |
|
Returns a list of all supplied package overrides. |
|
Supports calling resolvables with resolvable parameters |
|
Returns an object that will resolve to the resolution of the input resolvable but that can be accessed (i.e., attributes and subscripts accessed) as if the object were already resolved. |
Overridables#
Loads, from a sub-package, a submodule with an overridable name. |
|
|
Choice supporting convenient string-based CLI override |
Required but unset members can be initialized with an instance of this class. |