clack.types module
Custom types used by clack live here.
- class ClackConfig(*args, **kwargs)[source]
Bases:
ProtocolApplication Configuration Protocol
In other words, this class describes what an application Config object should look like.
- class ClackConfigFile(path)[source]
Bases:
ProtocolThe protocol used for configuration file classes.
- Parameters:
path (
Union[str,Path]) –
- extensions
- get(key)[source]
Getter for values in this config file.
- Parameters:
key (
str) –- Return type:
Union[Ok[Any,ErisError],Err[Any,ErisError]]
- classmethod new(path, **kwargs)[source]
Construct a new ClackConfigFile object.
- Parameters:
path (
Union[str,Path]) –kwargs (
Any) –
- Return type:
TypeVar(ConfigFile_T, bound= ClackConfigFile)
- path