aiq.registry_handlers.schemas.package#
Attributes#
Classes#
Data model containing a built python wheel and its corresponding metadata. |
|
Represents a data model containing a package name and version. |
|
Represents a data model containing a list of |
Module Contents#
- logger#
- class WheelData(/, **data: Any)#
Bases:
pydantic.BaseModel
Data model containing a built python wheel and its corresponding metadata.
- Args:
package_root (str): The path to the package root directory containing the pyproject.toml file. package_name (str): The name of the python package. toml_project (dict): A dictionary containing data about the python project. toml_dependencies (set): The list of dependencies provided in the pyproject.toml file. toml_aiq_packages (set): The AgentIQ plugins listed in the pyproject.toml. union_dependencies (set): The union of toml_dependencies and toml_aiq_packages. whl_path (str): The path to the package wheel file. whl_base64 (str): Base64 encoded string of the wheel file. whl_version (str): The version representing the wheel file.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.
- class PackageNameVersion(/, **data: Any)#
Bases:
pydantic.BaseModel
Represents a data model containing a package name and version.
- Args:
name (str): Package name, excluding the version. version (str | None): The package version, excluding the name. Defaults to None.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.
- class PackageNameVersionList(/, **data: Any)#
Bases:
pydantic.BaseModel
Represents a data model containing a list of
PackageNameVersion
packages.- Args:
packages (list[PackageNameVersion]): A list of
PackageNameVersion
models. Defaults to[]
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- packages: list[PackageNameVersion] = []#