PythonPackageModel#
- class documenteer.conf._toml.PythonPackageModel(**data)#
- Bases: - BaseModel- Model for a Python package (i.e. built with pyproject.toml-compatible build system. - Parameters:
- data ( - Any) –
 - Attributes Summary - A dictionary of computed field names and their corresponding - ComputedFieldInfoobjects.- Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].- Metadata about the fields defined on the model, mapping of field names to [ - FieldInfo][pydantic.fields.FieldInfo].- Methods Summary - Ensure the package is importable. - Attributes Documentation - model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
- A dictionary of computed field names and their corresponding - ComputedFieldInfoobjects.
 - model_config: ClassVar[ConfigDict] = {}#
- Configuration for the model, should be a dictionary conforming to [ - ConfigDict][pydantic.config.ConfigDict].
 - model_fields: ClassVar[dict[str, FieldInfo]] = {'documentation_url_key': FieldInfo(annotation=str, required=False, default='Homepage', description='Key for the documentation URL in the pyproject.toml [project.urls] table. The corresponding URL is used for the Sphinx html_baseurl configuration, which in turns sets the canonical URL link relation on the web pages.'), 'github_url_key': FieldInfo(annotation=str, required=False, default='Source', description='Key for the documentation URL in the pyproject.toml [project.urls] table. The corresponding URL is used for as an alternative to setting [project.github_url].'), 'package': FieldInfo(annotation=str, required=True, description='Package name')}#
- Metadata about the fields defined on the model, mapping of field names to [ - FieldInfo][pydantic.fields.FieldInfo].- This replaces - Model.__fields__from Pydantic V1.
 - Methods Documentation