bioimageio.spec.application
implementaions of all released minor versions are available in submodules:
- application v0_2:
bioimageio.spec.application.v0_2.ApplicationDescr
- application v0_3:
bioimageio.spec.application.v0_3.ApplicationDescr
1# autogen: start 2""" 3implementaions of all released minor versions are available in submodules: 4- application v0_2: `bioimageio.spec.application.v0_2.ApplicationDescr` 5- application v0_3: `bioimageio.spec.application.v0_3.ApplicationDescr` 6""" 7 8from typing import Union 9 10from pydantic import Discriminator 11from typing_extensions import Annotated 12 13from . import v0_2, v0_3 14 15ApplicationDescr = v0_3.ApplicationDescr 16ApplicationDescr_v0_2 = v0_2.ApplicationDescr 17ApplicationDescr_v0_3 = v0_3.ApplicationDescr 18 19AnyApplicationDescr = Annotated[ 20 Union[ApplicationDescr_v0_2, ApplicationDescr_v0_3], Discriminator("format_version") 21] 22"""Union of any released application desription""" 23# autogen: stop
32class ApplicationDescr(GenericDescrBase, title="bioimage.io application specification"): 33 """Bioimage.io description of an application.""" 34 35 type: Literal["application"] = "application" 36 37 id: Optional[ApplicationId] = None 38 """bioimage.io-wide unique resource identifier 39 assigned by bioimage.io; version **un**specific.""" 40 41 parent: Optional[ApplicationId] = None 42 """The description from which this one is derived""" 43 44 source: Annotated[ 45 Optional[ImportantFileSource], 46 Field(description="URL or path to the source of the application"), 47 ] = None 48 """The primary source of the application"""
Bioimage.io description of an application.
id: Optional[bioimageio.spec.application.v0_3.ApplicationId]
bioimage.io-wide unique resource identifier assigned by bioimage.io; version unspecific.
parent: Optional[bioimageio.spec.application.v0_3.ApplicationId]
The description from which this one is derived
source: Annotated[Optional[Annotated[Union[bioimageio.spec._internal.url.HttpUrl, bioimageio.spec._internal.io.RelativeFilePath, Annotated[pathlib.Path, PathType(path_type='file')]], FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')]), AfterValidator(func=<function wo_special_file_name at 0x7f9a7f3b8ea0>), PlainSerializer(func=<function _package at 0x7f9a7f3b9620>, return_type=PydanticUndefined, when_used='unless-none')]], FieldInfo(annotation=NoneType, required=True, description='URL or path to the source of the application')]
The primary source of the application
def
model_post_init(self: pydantic.main.BaseModel, context: Any, /) -> None:
124 def wrapped_model_post_init(self: BaseModel, context: Any, /) -> None: 125 """We need to both initialize private attributes and call the user-defined model_post_init 126 method. 127 """ 128 init_private_attributes(self, context) 129 original_model_post_init(self, context)
We need to both initialize private attributes and call the user-defined model_post_init method.
Inherited Members
ApplicationDescr_v0_2 =
<class 'bioimageio.spec.application.v0_2.ApplicationDescr'>
ApplicationDescr_v0_3 =
<class 'ApplicationDescr'>
AnyApplicationDescr =
typing.Annotated[typing.Union[bioimageio.spec.application.v0_2.ApplicationDescr, ApplicationDescr], Discriminator(discriminator='format_version', custom_error_type=None, custom_error_message=None, custom_error_context=None)]
Union of any released application desription