TechnoteToml#

class technote.sources.tomlsettings.TechnoteToml(**data)#

Bases: BaseModel

A model of a technote.toml configuration file.

Parameters:

data (Any)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

parse_toml(content)

Load a technote.toml file from the project directory.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

classmethod parse_toml(content)#

Load a technote.toml file from the project directory.

Parameters:

content (str) – The string content of a technote.toml file.

Returns:

The parsed TechnoteToml.

Return type:

TechnoteToml