diff --git a/clients/python/README.md b/clients/python/README.md index 3cb83a76c..dff15f273 100644 --- a/clients/python/README.md +++ b/clients/python/README.md @@ -1,6 +1,6 @@ # Model Registry Python Client -[![Python](https://img.shields.io/badge/python%20-3.9%7C3.10-blue)](https://github.com/kubeflow/model-registry) +[![Python](https://img.shields.io/badge/python%20-3.9%7C3.10%7C3.11%7C3.12-blue)](https://github.com/kubeflow/model-registry) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](../../../LICENSE) This library provides a high level interface for interacting with a model registry server. @@ -45,10 +45,6 @@ When registering models stored on S3-compatible object storage, you should use ` unambiguous URI for your artifact. ```py -from model_registry import ModelRegistry, utils - -registry = ModelRegistry(server_address="server-address", port=9090, author="author") - model = registry.register_model( "my-model", # model name uri=utils.s3_uri_from("path/to/model", "my-bucket"), diff --git a/clients/python/poetry.lock b/clients/python/poetry.lock index 57a2c556b..c4f25d8c7 100644 --- a/clients/python/poetry.lock +++ b/clients/python/poetry.lock @@ -1339,7 +1339,6 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -2062,4 +2061,4 @@ hf = ["huggingface-hub"] [metadata] lock-version = "2.0" python-versions = ">= 3.9, < 4.0" -content-hash = "06b4759e46fd9fc6204e4a9607520a7b1db8d3ea7702f6e08f781fb9ac619798" +content-hash = "93b5354f4f995bcbf199d5083133c552179eb16c33eed5b8d9ff6a60d4d9013c" diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index 9fa1d0afd..83aa9c32b 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -44,7 +44,7 @@ sphinx-autobuild = ">=2021.3.14,<2025.0.0" pytest = ">=7.4.2,<9.0.0" coverage = { extras = ["toml"], version = "^7.3.2" } pytest-cov = ">=4.1,<6.0" -ruff = "0.5.2" +ruff = "^0.5.2" mypy = "^1.7.0" pytest-asyncio = "^0.23.7" requests = "^2.32.2"