aiq.registry_handlers.schemas.package#

Attributes#

Classes#

WheelData

Data model containing a built python wheel and its corresponding metadata.

PackageNameVersion

Represents a data model containing a package name and version.

PackageNameVersionList

Represents a data model containing a list of PackageNameVersion packages.

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 allow self as a field name.

package_root: str#
package_name: str#
toml_project: dict#
toml_dependencies: set#
toml_aiq_packages: set#
union_dependencies: set#
whl_path: str#
whl_base64: str#
whl_version: str#
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 allow self as a field name.

name: str#
version: str | None = None#
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 allow self as a field name.

packages: list[PackageNameVersion] = []#