opensearch-py
Python client for OpenSearch
Decision gist · record as of 2026-08-14
Yes. The package is production-stable, actively maintained, has low install friction, carries a permissive Apache-2.0 license, and has no known vulnerabilities. It is the standard way to interact with OpenSearch from Python. Install it if you need to query or manage an OpenSearch cluster from a Python application.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; requires a running OpenSearch server instance to connect to.
- Low install friction with a pure Python wheel distribution.
- Actively maintained with a recent release; last commit on 2026-07-28 and production-stable status.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and redistribution with minimal restrictions. No license-based barriers to adoption.
last release 2026-04-27 (109 days) · last repo commit 2026-07-28 · 469 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 55,621,394 downloads/mo, #534 on PyPI
Alternatives
Verify before relying
pip install opensearch-py
import opensearch_py
# See User Guide at https://github.com/opensearch-project/opensearch-py/blob/main/USER_GUIDE.md
# for connection and query examples using urllib3, requests, and certifi- Specific OpenSearch server version compatibility details.
- Whether the package includes async/await support or is synchronous-only.
- Performance characteristics or throughput limits under typical workloads.
- Concrete code examples beyond what the User Guide documents.
What it is and what it does
opensearch-py is the official Python client for OpenSearch, a community-driven fork licensed under Apache v2.0. It provides a Pythonic interface to send requests to OpenSearch clusters over HTTP, handling connection pooling, serialization, and error handling transparently. The library wraps OpenSearch's REST API, allowing developers to perform search queries, index documents, manage indices, and administer clusters without writing raw HTTP calls.
The package is designed for applications that need to integrate search or analytics capabilities into Python services. It depends on urllib3 for HTTP connection management, requests for higher-level HTTP semantics, python-dateutil for timestamp handling, certifi for SSL certificate validation, Events for event handling, and opensearch-protobufs for protocol support. The library supports modern Python versions (3.10, 3.11, 3.12) and is marked production-stable, making it suitable for production deployments.
Use it for
- Building a search feature in a web application that queries documents stored in OpenSearch.
- Indexing application logs or events into OpenSearch for centralized logging and analysis.
- Automating cluster administration tasks such as creating indices or managing cluster state.
- Integrating OpenSearch analytics into data pipelines or ETL workflows.
- Migrating from Elasticsearch to OpenSearch with minimal code changes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is production-stable, actively maintained, has low install friction, carries a permissive Apache-2.0 license, and has no known vulnerabilities. It is the standard way to interact with OpenSearch from Python. Install it if you need to query or manage an OpenSearch cluster from a Python application.
Install
opensearch-py on PyPI
Before you install
Low install friction with a pure Python wheel distribution. Actively maintained with a recent release; last commit on 2026-07-28 and production-stable status. Depends on common, well-established libraries (urllib3, requests, python-dateutil, certifi).
Requires Python 3.10 or later; requires a running OpenSearch server instance to connect to.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and redistribution with minimal restrictions. No license-based barriers to adoption.
Quickstart
pip install opensearch-py
import opensearch_py
# See User Guide at https://github.com/opensearch-project/opensearch-py/blob/main/USER_GUIDE.md
# for connection and query examples using urllib3, requests, and certifi
Verify before relying
- Specific OpenSearch server version compatibility details.
- Whether the package includes async/await support or is synchronous-only.
- Performance characteristics or throughput limits under typical workloads.
- Concrete code examples beyond what the User Guide documents.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesurllib3requestspython-dateutilcertifiEventsopensearch-protobufs |
| Maintenance | Actively maintained 109 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 55,621,394 / month, #534 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: opensearch_py-3.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opensearch python client”
- opensearch-pyPython client library for connecting to and querying OpenSearch…
- opensearch-dslA Python client library for building and executing queries against…
- opensearch-protobufsProvides pre-generated Python Protocol Buffer message types and gRPC…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also opensearch-dsl · opensearch-logger · opensearch-mcp-server-py · django-opensearch-dsl · wolframalpha · elasticsearch-dbapi · elasticsearch9 · opensearch-protobufs · apache-airflow-providers-opensearch · clusterscope