diff --git a/py/packages/genkit/src/genkit/veneer/veneer.py b/py/packages/genkit/src/genkit/veneer/veneer.py index 14f01f10f..21810b434 100644 --- a/py/packages/genkit/src/genkit/veneer/veneer.py +++ b/py/packages/genkit/src/genkit/veneer/veneer.py @@ -116,7 +116,7 @@ async def generate( Returns: The generated text response. """ - model = model if model is not None else self.registry.defaultModel + model = model if model is not None else self.registry.default_model if model is None: raise Exception('No model configured.') if config and not isinstance(config, GenerationCommonConfig): diff --git a/py/plugins/vertex-ai/pyproject.toml b/py/plugins/vertex-ai/pyproject.toml index ed1fd934f..cd5982497 100644 --- a/py/plugins/vertex-ai/pyproject.toml +++ b/py/plugins/vertex-ai/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development :: Libraries", ] -dependencies = ["genkit", "google-cloud-aiplatform>=1.77.0"] +dependencies = ["genkit", "google-cloud-aiplatform>=1.77.0", "pytest-mock"] description = "Genkit Google Cloud Vertex AI Plugin" license = { text = "Apache-2.0" } name = "genkit-vertex-ai-plugin" diff --git a/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/__init__.py b/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/__init__.py index 77d670f30..637fc152d 100644 --- a/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/__init__.py +++ b/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/__init__.py @@ -8,6 +8,7 @@ from genkit.plugins.vertex_ai.embedding import EmbeddingModels from genkit.plugins.vertex_ai.gemini import GeminiVersion +from genkit.plugins.vertex_ai.imagen import ImagenVersion from genkit.plugins.vertex_ai.plugin_api import VertexAI, vertexai_name @@ -21,9 +22,10 @@ def package_name() -> str: __all__ = [ - 'package_name', - 'VertexAI', - 'vertexai_name', - 'EmbeddingModels', - 'GeminiVersion', + package_name.__name__, + VertexAI.__name__, + vertexai_name.__name__, + EmbeddingModels.__name__, + GeminiVersion.__name__, + ImagenVersion.__name__, ] diff --git a/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/imagen.py b/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/imagen.py new file mode 100644 index 000000000..21341bfcf --- /dev/null +++ b/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/imagen.py @@ -0,0 +1,112 @@ +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +from enum import StrEnum +from typing import Any + +from genkit.core.typing import ( + GenerateRequest, + GenerateResponse, + Media1, + MediaPart, + Message, + ModelInfo, + Role, + Supports, +) +from vertexai.preview.vision_models import ImageGenerationModel + + +class ImagenVersion(StrEnum): + IMAGEN3 = 'imagen-3.0-generate-002' + IMAGEN3_FAST = 'imagen-3.0-fast-generate-001' + IMAGEN2 = 'imagegeneration@006' + + +SUPPORTED_MODELS = { + ImagenVersion.IMAGEN3: ModelInfo( + label='Vertex AI - Imagen3', + supports=Supports( + media=True, + multiturn=False, + tools=False, + systemRole=False, + output=['media'], + ), + ), + ImagenVersion.IMAGEN3_FAST: ModelInfo( + label='Vertex AI - Imagen3 Fast', + supports=Supports( + media=False, + multiturn=False, + tools=False, + systemRole=False, + output=['media'], + ), + ), + ImagenVersion.IMAGEN2: ModelInfo( + label='Vertex AI - Imagen2', + supports=Supports( + media=False, + multiturn=False, + tools=False, + systemRole=False, + output=['media'], + ), + ), +} + + +class Imagen: + """Imagen - text to image model.""" + + def __init__(self, version): + self._version = version + + @property + def model(self) -> ImageGenerationModel: + return ImageGenerationModel.from_pretrained(self._version) + + def handle_request(self, request: GenerateRequest) -> GenerateResponse: + parts: list[str] = [] + for m in request.messages: + for p in m.content: + if p.root.text is not None: + parts.append(p.root.text) + else: + raise Exception('unsupported part type') + + prompt = ' '.join(parts) + images = self.model.generate_images( + prompt=prompt, + number_of_images=1, + language='en', + aspect_ratio='1:1', + safety_filter_level='block_some', + person_generation='allow_adult', + ) + + media_content = [ + MediaPart( + media=Media1( + contentType=image._mime_type, url=image._as_base64_string() + ) + ) + for image in images + ] + + return GenerateResponse( + message=Message( + role=Role.MODEL, + content=media_content, + ) + ) + + @property + def model_metadata(self) -> dict[str, Any]: + supports = SUPPORTED_MODELS[self._version].supports.model_dump() + return { + 'model': { + 'supports': supports, + } + } diff --git a/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/plugin_api.py b/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/plugin_api.py index 5b5070417..fe321dec9 100644 --- a/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/plugin_api.py +++ b/py/plugins/vertex-ai/src/genkit/plugins/vertex_ai/plugin_api.py @@ -13,6 +13,7 @@ from genkit.plugins.vertex_ai import constants as const from genkit.plugins.vertex_ai.embedding import Embedder, EmbeddingModels from genkit.plugins.vertex_ai.gemini import Gemini, GeminiVersion +from genkit.plugins.vertex_ai.imagen import Imagen, ImagenVersion LOG = logging.getLogger(__name__) @@ -85,3 +86,12 @@ def initialize(self, registry: Registry) -> None: fn=embedder.handle_request, metadata=embedder.model_metadata, ) + + for imagen_version in ImagenVersion: + imagen = Imagen(imagen_version) + registry.register_action( + kind=ActionKind.MODEL, + name=vertexai_name(imagen_version), + fn=imagen.handle_request, + metadata=imagen.model_metadata, + ) diff --git a/py/plugins/vertex-ai/tests/test_gemini.py b/py/plugins/vertex-ai/tests/test_gemini.py new file mode 100644 index 000000000..74a97b5ba --- /dev/null +++ b/py/plugins/vertex-ai/tests/test_gemini.py @@ -0,0 +1,52 @@ +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +"""Test Gemini models.""" + +import pytest +from genkit.core.typing import ( + GenerateRequest, + GenerateResponse, + Message, + Role, + TextPart, +) +from genkit.plugins.vertex_ai.gemini import Gemini, GeminiVersion + + +@pytest.mark.parametrize('version', [x for x in GeminiVersion]) +def test_generate_text_response(mocker, version): + mocked_respond = 'Mocked Respond' + request = GenerateRequest( + messages=[ + Message( + role=Role.USER, + content=[ + TextPart(text=f'Hi, mock!'), + ], + ), + ] + ) + gemini = Gemini(version) + genai_model_mock = mocker.MagicMock() + model_response_mock = mocker.MagicMock() + model_response_mock.text = mocked_respond + genai_model_mock.generate_content.return_value = model_response_mock + mocker.patch( + 'genkit.plugins.vertex_ai.gemini.Gemini.gemini_model', genai_model_mock + ) + + response = gemini.handle_request(request) + assert isinstance(response, GenerateResponse) + assert response.message.content[0].root.text == mocked_respond + + +@pytest.mark.parametrize('version', [x for x in GeminiVersion]) +def test_gemini_metadata(version): + gemini = Gemini(version) + supports = gemini.model_metadata['model']['supports'] + assert isinstance(supports, dict) + assert supports['multiturn'] + assert supports['media'] + assert supports['tools'] + assert supports['system_role'] diff --git a/py/plugins/vertex-ai/tests/test_imagen.py b/py/plugins/vertex-ai/tests/test_imagen.py new file mode 100644 index 000000000..51e8b1e45 --- /dev/null +++ b/py/plugins/vertex-ai/tests/test_imagen.py @@ -0,0 +1,57 @@ +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +"""Test Gemini models.""" + +import pytest +from genkit.core.typing import ( + GenerateRequest, + GenerateResponse, + Media1, + Message, + Role, + TextPart, +) +from genkit.plugins.vertex_ai.imagen import Imagen, ImagenVersion + + +@pytest.mark.parametrize('version', [x for x in ImagenVersion]) +def test_generate(mocker, version): + mocked_respond = 'Supposed Base64 string' + request = GenerateRequest( + messages=[ + Message( + role=Role.USER, + content=[ + TextPart(text=f'Draw a test.'), + ], + ), + ] + ) + imagen = Imagen(version) + genai_model_mock = mocker.MagicMock() + model_response_mock = mocker.MagicMock() + model_response_mock._mime_type = '' + model_response_mock._as_base64_string.return_value = mocked_respond + genai_model_mock.generate_images.return_value = [model_response_mock] + mocker.patch( + 'genkit.plugins.vertex_ai.imagen.Imagen.model', genai_model_mock + ) + + response = imagen.handle_request(request) + assert isinstance(response, GenerateResponse) + assert isinstance(response.message.content[0].root.media, Media1) + assert response.message.content[0].root.media.url == mocked_respond + + +@pytest.mark.parametrize('version', [x for x in ImagenVersion]) +def test_gemini_metadata(version): + imagen = Imagen(version) + supports = imagen.model_metadata['model']['supports'] + assert isinstance(supports, dict) + assert not supports['multiturn'] + assert not supports['tools'] + assert not supports['system_role'] diff --git a/py/samples/vetex-ai-imagen/LICENSE b/py/samples/vetex-ai-imagen/LICENSE new file mode 100644 index 000000000..220539673 --- /dev/null +++ b/py/samples/vetex-ai-imagen/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025 Google LLC + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/py/samples/vetex-ai-imagen/README.md b/py/samples/vetex-ai-imagen/README.md new file mode 100644 index 000000000..8437f509c --- /dev/null +++ b/py/samples/vetex-ai-imagen/README.md @@ -0,0 +1,20 @@ +# Flower image generator + +## Setup environment +Use `gcloud auth application-default login` to connect to the VertexAI. + +```bash +uv venv +source .venv/bin/activate +``` + +## Run the sample + +The sample generates the image of flower in a folder you run it on +in a directory you mention by --directory. + +The command to run: + +```bash +genkit start -- uv run --directory py samples/vetex-ai-imagen/example_imagen.py +``` diff --git a/py/samples/vetex-ai-imagen/example_imagen.py b/py/samples/vetex-ai-imagen/example_imagen.py new file mode 100644 index 000000000..a247e1126 --- /dev/null +++ b/py/samples/vetex-ai-imagen/example_imagen.py @@ -0,0 +1,40 @@ +# Copyright 2025 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +"""An Imagen model on VertexAI sample.""" + +import asyncio +import base64 + +from genkit.core.typing import Message, Role, TextPart +from genkit.plugins.vertex_ai import ImagenVersion, VertexAI, vertexai_name +from genkit.veneer.veneer import Genkit + +ai = Genkit( + plugins=[VertexAI()], model=vertexai_name(ImagenVersion.IMAGEN3_FAST) +) + + +@ai.flow() +async def draw_image(prompt: str): + return await ai.generate( + messages=[ + Message( + role=Role.USER, + content=[TextPart(text=prompt)], + ) + ] + ) + + +async def main() -> None: + """Main entry point for the Imagen sample.""" + response = await draw_image('Draw a flower.') + base64string = response.message.content[0].root.media.url + image = base64.b64decode(base64string, validate=True) + with open('flower.jpg', 'wb') as f: + f.write(image) + + +if __name__ == '__main__': + asyncio.run(main()) diff --git a/py/samples/vetex-ai-imagen/pyproject.toml b/py/samples/vetex-ai-imagen/pyproject.toml new file mode 100644 index 000000000..73fbba45d --- /dev/null +++ b/py/samples/vetex-ai-imagen/pyproject.toml @@ -0,0 +1,39 @@ +[project] +authors = [{ name = "Google" }] +classifiers = [ + "Development Status :: 3 - Alpha", + "Environment :: Console", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Scientific/Engineering :: Artificial Intelligence", + "Topic :: Software Development :: Libraries", +] +dependencies = [ + "genkit", + "genkit-firebase-plugin", + "genkit-google-ai-plugin", + "genkit-google-cloud-plugin", + "genkit-ollama-plugin", + "genkit-pinecone-plugin", + "genkit-vertex-ai-plugin", + "pydantic>=2.10.5" +] +description = "Imagen Genkit sample" +license = { text = "Apache-2.0" } +name = "imagen" +readme = "README.md" +requires-python = ">=3.12" +version = "0.1.0" + +[build-system] +build-backend = "hatchling.build" +requires = ["hatchling"] + +[tool.hatch.build.targets.wheel] +packages = ["src/imagen"] diff --git a/py/uv.lock b/py/uv.lock index 0369f15da..71ccadcb4 100644 --- a/py/uv.lock +++ b/py/uv.lock @@ -1,5 +1,4 @@ version = 1 -revision = 1 requires-python = ">=3.12" resolution-markers = [ "python_full_version >= '3.13'", @@ -22,6 +21,7 @@ members = [ "genkit-vertex-ai-plugin", "genkit-workspace", "hello", + "imagen", "menu", "prompt-file", "rag", @@ -762,12 +762,14 @@ source = { editable = "plugins/vertex-ai" } dependencies = [ { name = "genkit" }, { name = "google-cloud-aiplatform" }, + { name = "pytest-mock" }, ] [package.metadata] requires-dist = [ { name = "genkit", editable = "packages/genkit" }, { name = "google-cloud-aiplatform", specifier = ">=1.77.0" }, + { name = "pytest-mock" }, ] [[package]] @@ -1177,6 +1179,33 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 }, ] +[[package]] +name = "imagen" +version = "0.1.0" +source = { editable = "samples/vetex-ai-imagen" } +dependencies = [ + { name = "genkit" }, + { name = "genkit-firebase-plugin" }, + { name = "genkit-google-ai-plugin" }, + { name = "genkit-google-cloud-plugin" }, + { name = "genkit-ollama-plugin" }, + { name = "genkit-pinecone-plugin" }, + { name = "genkit-vertex-ai-plugin" }, + { name = "pydantic" }, +] + +[package.metadata] +requires-dist = [ + { name = "genkit", editable = "packages/genkit" }, + { name = "genkit-firebase-plugin", editable = "plugins/firebase" }, + { name = "genkit-google-ai-plugin", editable = "plugins/google-ai" }, + { name = "genkit-google-cloud-plugin", editable = "plugins/google-cloud" }, + { name = "genkit-ollama-plugin", editable = "plugins/ollama" }, + { name = "genkit-pinecone-plugin", editable = "plugins/pinecone" }, + { name = "genkit-vertex-ai-plugin", editable = "plugins/vertex-ai" }, + { name = "pydantic", specifier = ">=2.10.5" }, +] + [[package]] name = "importlib-metadata" version = "8.5.0" @@ -2208,6 +2237,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/36/3b/48e79f2cd6a61dbbd4807b4ed46cb564b4fd50a76166b1c4ea5c1d9e2371/pytest_cov-6.0.0-py3-none-any.whl", hash = "sha256:eee6f1b9e61008bd34975a4d5bab25801eb31898b032dd55addc93e96fcaaa35", size = 22949 }, ] +[[package]] +name = "pytest-mock" +version = "3.14.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c6/90/a955c3ab35ccd41ad4de556596fa86685bf4fc5ffcc62d22d856cfd4e29a/pytest-mock-3.14.0.tar.gz", hash = "sha256:2719255a1efeceadbc056d6bf3df3d1c5015530fb40cf347c0f9afac88410bd0", size = 32814 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f2/3b/b26f90f74e2986a82df6e7ac7e319b8ea7ccece1caec9f8ab6104dc70603/pytest_mock-3.14.0-py3-none-any.whl", hash = "sha256:0b72c38033392a5f4621342fe11e9219ac11ec9d375f8e2a0c164539e0d70f6f", size = 9863 }, +] + [[package]] name = "pytest-watcher" version = "0.4.3"