package_name_to_import_with.data_using_module module#

Define package contents.

class PackageMetadata(*, Name, Version, Description, Keywords, License, Maintainers, Authors, Links)[source]#

Bases: pydantic.main.BaseModel

Define keys and types of corresponding values for package metadata.

Name#

name of the package

Type:

str

Version#

version of the package

Type:

str

Description#

description of the package

Type:

str

Keywords#

keywords associated with the package

Type:

list[str]

License#

license of the package

Type:

str

Maintainers#

maintainers of the package

Type:

list[str]

Authors#

authors of the package

Type:

list[str]

links associated with the package

Type:

dict[str, pydantic.HttpUrl]

Name: str#
Version: str#
Description: str#
Keywords: list[str]#
License: str#
Maintainers: list[str]#
Authors: list[str]#
Links: dict[str, pydantic_core._pydantic_core.Url]#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

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

model_fields: ClassVar[dict[str, FieldInfo]] = {'Authors': FieldInfo(annotation=list[str], required=True), 'Description': FieldInfo(annotation=str, required=True), 'Keywords': FieldInfo(annotation=list[str], required=True), 'License': FieldInfo(annotation=str, required=True), 'Links': FieldInfo(annotation=dict[str, Annotated[Url, UrlConstraints(max_length=2083, allowed_schemes=['http', 'https'], host_required=None, default_host=None, default_port=None, default_path=None)]], required=True), 'Maintainers': FieldInfo(annotation=list[str], required=True), 'Name': FieldInfo(annotation=str, required=True), 'Version': FieldInfo(annotation=str, required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.