{"id":13715850,"url":"https://github.com/milvus-io/pymilvus","last_synced_at":"2026-04-02T14:52:48.093Z","repository":{"id":37626920,"uuid":"191751505","full_name":"milvus-io/pymilvus","owner":"milvus-io","description":"Python SDK for Milvus Vector Database","archived":false,"fork":false,"pushed_at":"2025-05-07T07:20:48.000Z","size":6777,"stargazers_count":1173,"open_issues_count":369,"forks_count":352,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-07T07:44:00.082Z","etag":null,"topics":["anns","faiss","faiss-vector-database","milvus","milvus-lite","milvus-sdk","python","python-sdk","vector-database"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/milvus-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-06-13T11:38:34.000Z","updated_at":"2025-05-07T07:20:52.000Z","dependencies_parsed_at":"2024-02-05T07:24:03.377Z","dependency_job_id":"cf6eea39-8dcd-4740-84b4-735ebd2ccc19","html_url":"https://github.com/milvus-io/pymilvus","commit_stats":{"total_commits":1722,"total_committers":124,"mean_commits":"13.887096774193548","dds":0.7706155632984901,"last_synced_commit":"c10d61a1db61f454e8f14319b39ad8eb2702227d"},"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milvus-io%2Fpymilvus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milvus-io%2Fpymilvus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milvus-io%2Fpymilvus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milvus-io%2Fpymilvus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milvus-io","download_url":"https://codeload.github.com/milvus-io/pymilvus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252839274,"owners_count":21812084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anns","faiss","faiss-vector-database","milvus","milvus-lite","milvus-sdk","python","python-sdk","vector-database"],"created_at":"2024-08-03T00:01:04.325Z","updated_at":"2026-04-02T14:52:48.086Z","avatar_url":"https://github.com/milvus-io.png","language":"Python","funding_links":[],"categories":["Sdks \u0026 Libraries","*Ops for AI","Coding \u0026 Development"],"sub_categories":["Model Serving \u0026 Inference"],"readme":"# Milvus Python SDK\n\n[![version](https://img.shields.io/pypi/v/pymilvus.svg?color=blue)](https://pypi.org/project/pymilvus/)\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/pymilvus?logo=python\u0026logoColor=blue)](https://pypi.org/project/pymilvus/)\n[![Downloads](https://static.pepy.tech/badge/pymilvus)](https://pepy.tech/project/pymilvus)\n[![Downloads](https://static.pepy.tech/badge/pymilvus/month)](https://pepy.tech/project/pymilvus)\n[![Downloads](https://static.pepy.tech/badge/pymilvus/week)](https://pepy.tech/project/pymilvus)\n\n[![license](https://img.shields.io/hexpm/l/plug.svg?color=green)](https://github.com/milvus-io/pymilvus/blob/master/LICENSE)\n![Static Badge](https://img.shields.io/badge/slack-%23py--milvus-blue?style=social\u0026logo=slack\u0026link=https%3A%2F%2Fmilvusio.slack.com%2Farchives%2FC024XTWMT4L)\n\nPython SDK for [Milvus](https://github.com/milvus-io/milvus). To contribute code to this project, please read our [contribution guidelines](https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md) first. If you have some ideas or encounter a problem, you can find us in the Slack channel [#py-milvus](https://milvusio.slack.com/archives/C024XTWMT4L).\n\n\n## Compatibility\nThe following collection shows Milvus versions and recommended PyMilvus versions:\n\n|Milvus version| Recommended PyMilvus version |\n|:-----:|:-----:|\n| 1.0.\\* | 1.0.1 |\n| 1.1.\\* | 1.1.2 |\n| 2.0.\\* | 2.0.2 |\n| 2.1.\\* | 2.1.3 |\n| 2.2.\\* | 2.2.15 |\n| 2.3.\\* | 2.3.7 |\n| 2.4.\\* | 2.4.X |\n| 2.5.\\* | 2.5.X |\n| 2.6.\\* | 2.6.X |\n\n\n## Installation\n\nYou can install PyMilvus via `pip` or `pip3` for Python 3.8+:\n\n```shell\n$ pip3 install pymilvus\n$ pip3 install pymilvus[model] # for milvus-model\n$ pip3 install pymilvus[bulk_writer] # for bulk_writer\n```\n\nYou can install a specific version of PyMilvus by:\n\n```shell\n$ pip3 install pymilvus==2.4.10\n```\n\nYou can upgrade PyMilvus to the latest version by:\n\n```shell\n$ pip3 install --upgrade pymilvus\n```\n\n## FAQ\nQ1. How to get submodules?\n\nA1. The following command will get the protos matching to the generated files, for protos of certain version, see\n[milvus-proto](https://github.com/milvus-io/milvus-proto#usage) for details.\n```shell\n$ git submodule update --init\n```\n\nQ2. How to generate python files from milvus-proto?\n\nA2.\n```shell\n$ make gen_proto\n```\n\nQ3. How to use the local PyMilvus repository for Milvus server?\n\nA3.\n```shell\n$ make install\n```\n\nQ4. How to check and auto-fix the coding styles?\n\nA4.\n```shell\nmake lint\nmake format\n```\n\nQ5. How to set up pre-commit hooks to automatically check and fix the coding styles?\n\nOnce installed, the hooks will automatically run `make format` and `make lint` before each commit. If the checks fail, the commit will be aborted, and you'll need to fix the issues before committing again.\n\nA5. Pre-commit hooks help ensure code quality by automatically running linting and formatting checks before each commit.\n```shell\n# Install pre-commit (if not already installed)\n$ pip install pre-commit\n\n# Install the git hook scripts\n$ pre-commit install\n```\n\nQ7. How to run unittests?\n\nA7\n```shell\n$ pip install \".[dev]\"\n$ make unittest\n```\n\nQ8. `zsh: no matches found: pymilvus[model]`, how do I solve this?\n\nA8\n```shell\n$ pip install \"pymilvus[model]\"\n```\n\n## Documentation\n\nDocumentation is available online: https://milvus.io/api-reference/pymilvus/v2.4.x/About.md\n\n## Developing package releases\n\nThe commits on the development branch of each version will be packaged and uploaded to [Test PyPI](https://test.pypi.org/).\n\nThe package name generated by the development branch is x.y.z.rc\u003cdist\u003e, where \u003cdist\u003e is the number of commits that differ from the most recent release.\n\n- For example, after the release of **2.3.4**, two commits were submitted on the 2.3 branch.\nThe version number of the latest commit of 2.3 branch is **2.3.5.rc2**.\n\n- For example, after the release of **2.3.4**, 10 commits were submitted on the master branch.\nThe version number of the latest commit of master branch is **2.4.0.rc10**.\n\n\nTo install the package on Test PyPi, you need to append `--extra-index-url` after pip, for example:\n```shell\n$ python3 -m pip install --extra-index-url https://test.pypi.org/simple/ pymilvus==2.1.0.dev66\n```\n\n\n## License\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilvus-io%2Fpymilvus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilvus-io%2Fpymilvus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilvus-io%2Fpymilvus/lists"}