pypi / opensearch-py
opensearch-py
What changed in opensearch-py 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-02.
3 breaking4 new APIs and options1 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initopensearch-py 311 changes
Breaking changes 2
Repurposes the Elasticsearch dense_vector field for knn_vector.
Raises the minimum supported Python version from 3.8 to 3.10.
New APIs and options 4
Adds explicit proxy support to RequestsHttpConnection.
Adds a transport-grpc client library.
Custom headers are now available to the async AWS signer.
Search now supports the search_after parameter.
Fixes and other changes 5
The signer now passes headers to AWSRequest when signing.
The client was updated to reflect the latest OpenSearch API spec, changing the API surface available to developers.
The signer now includes X-Amz-Content-SHA256 in SignedHeaders.
Fixes the async request signer.
Fixed double-writes.
opensearch-py 22 changes
Breaking changes 1
Type mappings are removed for OpenSearch 2.0.
Behavior and default changes 1
requests is moved to install_requires, so it is installed as a required dependency when installing opensearch-py.