-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #560 from bioimage-io/zip2bytes
Add function to write models directly to streams
- Loading branch information
Showing
10 changed files
with
198 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- application v0_2: `bioimageio.spec.application.v0_2.ApplicationDescr` [user documentation](../../../user_docs/application_descr_v0-2.md) | ||
- application v0_3: `bioimageio.spec.application.v0_3.ApplicationDescr` [user documentation](../../../user_docs/application_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import ApplicationDescr as ApplicationDescr_v0_2 | ||
from .v0_3 import ApplicationDescr as ApplicationDescr | ||
from .v0_3 import ApplicationDescr as ApplicationDescr_v0_3 | ||
|
||
AnyApplicationDescr = Annotated[ | ||
Union[ApplicationDescr_v0_2, ApplicationDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released application desription""" | ||
# autogen: stop | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- application v0_2: `bioimageio.spec.application.v0_2.ApplicationDescr` [user documentation](../../../user_docs/application_descr_v0-2.md) | ||
- application v0_3: `bioimageio.spec.application.v0_3.ApplicationDescr` [user documentation](../../../user_docs/application_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import ApplicationDescr as ApplicationDescr_v0_2 | ||
from .v0_3 import ApplicationDescr as ApplicationDescr | ||
from .v0_3 import ApplicationDescr as ApplicationDescr_v0_3 | ||
|
||
AnyApplicationDescr = Annotated[ | ||
Union[ApplicationDescr_v0_2, ApplicationDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released application desription""" | ||
# autogen: stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- collection v0_2: `bioimageio.spec.collection.v0_2.CollectionDescr` [user documentation](../../../user_docs/collection_descr_v0-2.md) | ||
- collection v0_3: `bioimageio.spec.collection.v0_3.CollectionDescr` [user documentation](../../../user_docs/collection_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import CollectionDescr as CollectionDescr_v0_2 | ||
from .v0_3 import CollectionDescr as CollectionDescr | ||
from .v0_3 import CollectionDescr as CollectionDescr_v0_3 | ||
|
||
AnyCollectionDescr = Annotated[ | ||
Union[CollectionDescr_v0_2, CollectionDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released collection desription""" | ||
# autogen: stop | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- collection v0_2: `bioimageio.spec.collection.v0_2.CollectionDescr` [user documentation](../../../user_docs/collection_descr_v0-2.md) | ||
- collection v0_3: `bioimageio.spec.collection.v0_3.CollectionDescr` [user documentation](../../../user_docs/collection_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import CollectionDescr as CollectionDescr_v0_2 | ||
from .v0_3 import CollectionDescr as CollectionDescr | ||
from .v0_3 import CollectionDescr as CollectionDescr_v0_3 | ||
|
||
AnyCollectionDescr = Annotated[ | ||
Union[CollectionDescr_v0_2, CollectionDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released collection desription""" | ||
# autogen: stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- dataset v0_2: `bioimageio.spec.dataset.v0_2.DatasetDescr` [user documentation](../../../user_docs/dataset_descr_v0-2.md) | ||
- dataset v0_3: `bioimageio.spec.dataset.v0_3.DatasetDescr` [user documentation](../../../user_docs/dataset_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import DatasetDescr as DatasetDescr_v0_2 | ||
from .v0_3 import DatasetDescr as DatasetDescr | ||
from .v0_3 import DatasetDescr as DatasetDescr_v0_3 | ||
|
||
AnyDatasetDescr = Annotated[ | ||
Union[DatasetDescr_v0_2, DatasetDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released dataset desription""" | ||
# autogen: stop | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- dataset v0_2: `bioimageio.spec.dataset.v0_2.DatasetDescr` [user documentation](../../../user_docs/dataset_descr_v0-2.md) | ||
- dataset v0_3: `bioimageio.spec.dataset.v0_3.DatasetDescr` [user documentation](../../../user_docs/dataset_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import DatasetDescr as DatasetDescr_v0_2 | ||
from .v0_3 import DatasetDescr as DatasetDescr | ||
from .v0_3 import DatasetDescr as DatasetDescr_v0_3 | ||
|
||
AnyDatasetDescr = Annotated[ | ||
Union[DatasetDescr_v0_2, DatasetDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released dataset desription""" | ||
# autogen: stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- generic v0_2: `bioimageio.spec.generic.v0_2.GenericDescr` [user documentation](../../../user_docs/generic_descr_v0-2.md) | ||
- generic v0_3: `bioimageio.spec.generic.v0_3.GenericDescr` [user documentation](../../../user_docs/generic_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import GenericDescr as GenericDescr_v0_2 | ||
from .v0_3 import GenericDescr as GenericDescr | ||
from .v0_3 import GenericDescr as GenericDescr_v0_3 | ||
|
||
AnyGenericDescr = Annotated[ | ||
Union[GenericDescr_v0_2, GenericDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released generic desription""" | ||
# autogen: stop | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- generic v0_2: `bioimageio.spec.generic.v0_2.GenericDescr` [user documentation](../../../user_docs/generic_descr_v0-2.md) | ||
- generic v0_3: `bioimageio.spec.generic.v0_3.GenericDescr` [user documentation](../../../user_docs/generic_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import GenericDescr as GenericDescr_v0_2 | ||
from .v0_3 import GenericDescr as GenericDescr | ||
from .v0_3 import GenericDescr as GenericDescr_v0_3 | ||
|
||
AnyGenericDescr = Annotated[ | ||
Union[GenericDescr_v0_2, GenericDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released generic desription""" | ||
# autogen: stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- model v0_4: `bioimageio.spec.model.v0_4.ModelDescr` [user documentation](../../../user_docs/model_descr_v0-4.md) | ||
- model v0_5: `bioimageio.spec.model.v0_5.ModelDescr` [user documentation](../../../user_docs/model_descr_v0-5.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_4 import ModelDescr as ModelDescr_v0_4 | ||
from .v0_5 import ModelDescr as ModelDescr | ||
from .v0_5 import ModelDescr as ModelDescr_v0_5 | ||
|
||
AnyModelDescr = Annotated[ | ||
Union[ModelDescr_v0_4, ModelDescr_v0_5], Discriminator("format_version") | ||
] | ||
"""Union of any released model desription""" | ||
# autogen: stop | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- model v0_4: `bioimageio.spec.model.v0_4.ModelDescr` [user documentation](../../../user_docs/model_descr_v0-4.md) | ||
- model v0_5: `bioimageio.spec.model.v0_5.ModelDescr` [user documentation](../../../user_docs/model_descr_v0-5.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_4 import ModelDescr as ModelDescr_v0_4 | ||
from .v0_5 import ModelDescr as ModelDescr | ||
from .v0_5 import ModelDescr as ModelDescr_v0_5 | ||
|
||
AnyModelDescr = Annotated[ | ||
Union[ModelDescr_v0_4, ModelDescr_v0_5], Discriminator("format_version") | ||
] | ||
"""Union of any released model desription""" | ||
# autogen: stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- notebook v0_2: `bioimageio.spec.notebook.v0_2.NotebookDescr` [user documentation](../../../user_docs/notebook_descr_v0-2.md) | ||
- notebook v0_3: `bioimageio.spec.notebook.v0_3.NotebookDescr` [user documentation](../../../user_docs/notebook_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import NotebookDescr as NotebookDescr_v0_2 | ||
from .v0_3 import NotebookDescr as NotebookDescr | ||
from .v0_3 import NotebookDescr as NotebookDescr_v0_3 | ||
|
||
AnyNotebookDescr = Annotated[ | ||
Union[NotebookDescr_v0_2, NotebookDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released notebook desription""" | ||
# autogen: stop | ||
# autogen: start | ||
""" | ||
implementaions of all released minor versions are available in submodules: | ||
- notebook v0_2: `bioimageio.spec.notebook.v0_2.NotebookDescr` [user documentation](../../../user_docs/notebook_descr_v0-2.md) | ||
- notebook v0_3: `bioimageio.spec.notebook.v0_3.NotebookDescr` [user documentation](../../../user_docs/notebook_descr_v0-3.md) | ||
""" | ||
from typing import Union | ||
|
||
from pydantic import Discriminator | ||
from typing_extensions import Annotated | ||
|
||
from .v0_2 import NotebookDescr as NotebookDescr_v0_2 | ||
from .v0_3 import NotebookDescr as NotebookDescr | ||
from .v0_3 import NotebookDescr as NotebookDescr_v0_3 | ||
|
||
AnyNotebookDescr = Annotated[ | ||
Union[NotebookDescr_v0_2, NotebookDescr_v0_3], Discriminator("format_version") | ||
] | ||
"""Union of any released notebook desription""" | ||
# autogen: stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters