Person#

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

Bases: BaseModel

Model for describing a person related to the technote.

Parameters:

data (Any)

Attributes Summary

model_config

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

Methods Summary

format_orcid_url(value)

Format a bare ORCiD identifier as a URL.

validate_orcid(v)

Ensure that orcid is a valid ORCiD identifier, or None.

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

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

Methods Documentation

classmethod format_orcid_url(value)#

Format a bare ORCiD identifier as a URL.

Parameters:

value (str)

Return type:

str

classmethod validate_orcid(v)#

Ensure that orcid is a valid ORCiD identifier, or None.

Parameters:

v (HttpUrl | None)

Return type:

HttpUrl | None