elasticsearch

Official Python client for Elasticsearch

Latest version: 9.4.0 registry icon
Maintenance score
100
Safety score
100
Popularity score
100
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
9.4.0 0 0 0 0 0
9.3.0 0 0 0 0 0
9.2.1 0 0 0 0 0
9.2.0 0 0 0 0 0
9.1.3 0 0 0 0 0
9.1.2 0 0 0 0 0
9.1.1 0 0 0 0 0
9.1.0 0 0 0 0 0
9.0.5 0 0 0 0 0
9.0.4 0 0 0 0 0
9.0.3 0 0 0 0 0
9.0.2 0 0 0 0 0
9.0.1 0 0 0 0 0
9.0.0 0 0 0 0 0
8.19.3 0 0 0 0 0
8.19.2 0 0 0 0 0
8.19.1 0 0 0 0 0
8.19.0 0 0 0 0 0
8.18.1 0 0 0 0 0
8.18.0 0 0 0 0 0
8.17.2 0 0 0 0 0
8.17.1 0 0 0 0 0
8.17.0 0 0 0 0 0
8.16.0 0 0 0 0 0
8.15.1 0 0 0 0 0
8.15.0 0 0 0 0 0
8.14.0 0 0 0 0 0
8.13.2 0 0 0 0 0
8.13.1 0 0 0 0 0
8.13.0 0 0 0 0 0
8.12.1 0 0 0 0 0
8.12.0 0 0 0 0 0
8.11.1 0 0 0 0 0
8.11.0 0 0 0 0 0
8.10.1 0 0 0 0 0
8.10.0 0 0 0 0 0
8.9.0 0 0 0 0 0
8.8.2 0 0 0 0 0
8.8.1 0 0 0 0 0
8.8.0 0 0 0 0 0
8.7.0 0 0 0 0 0
8.6.2 0 0 0 0 0
8.6.1 0 0 0 0 0
8.6.0 0 0 0 0 0
8.5.3 0 0 0 0 0
8.5.2 0 0 0 0 0
8.5.1 0 0 0 0 0
8.5.0 0 0 0 0 0
8.4.3 0 0 0 0 0
8.4.2 0 0 0 0 0
8.4.1 0 0 0 0 0
8.4.0 0 0 0 0 0
8.3.3 0 0 0 0 0
8.3.2 0 0 0 0 0
8.3.1 0 0 0 0 0
8.3.0 0 0 0 0 0
8.2.3 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0 0 0 0 0
7.7.0 0 0 0 0 0
7.6.0a1 0 0 0 0 0
7.6.0 0 0 0 0 0
7.5.1 0 0 0 0 0
7.1.0 0 0 0 0 0
7.0.5 0 0 0 0 0
7.0.4 0 0 0 0 0
7.0.3 0 0 0 0 0
7.0.2 0 0 0 0 0
7.0.1 0 0 0 0 0
7.0.0 0 0 0 0 0
6.8.2 0 0 0 0 0
6.8.1 0 0 0 0 0
6.8.0 0 0 0 0 0
6.4.0 0 0 0 0 0
6.3.1 0 0 0 0 0
6.3.0 0 0 0 0 0
6.2.0 0 0 0 0 0
6.1.1 0 0 0 0 0
6.0.0 0 0 0 0 0
5.5.3 0 0 0 0 0
5.5.2 0 0 0 0 0
5.5.1 0 0 0 0 0
5.5.0 0 0 0 0 0
5.4.0 0 0 0 0 0
5.3.0 0 0 0 0 0
5.2.0 0 0 0 0 0
5.1.0 0 0 0 0 0
5.0.1 0 0 0 0 0
5.0.0 0 0 0 0 0
2.4.1 0 0 0 0 0
2.4.0 0 0 0 0 0
2.3.0 0 0 0 0 0
2.2.0 0 0 0 0 0
2.1.0 0 0 0 0 0
2.0.0 0 0 0 0 0
1.9.0 0 0 0 0 0
1.8.0 0 0 0 0 0
1.7.0 0 0 0 0 0
1.6.0 0 0 0 0 0
1.5.0 0 0 0 0 0
1.4.0 0 0 0 0 0
1.3.0 0 0 0 0 0
1.2.0 0 0 0 0 0
1.1.1 0 0 0 0 0
1.1.0 0 0 0 0 0
1.0.0 0 0 0 0 0
0.4.5 0 0 0 0 0
0.4.4 0 0 0 0 0
0.4.3 0 0 0 0 0
0.4.2 0 0 0 0 0
0.4.1 0 0 0 0 0

Stability
Latest release:

9.4.0 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

Apache-1.0   -   Apache License 1.0

Not a wildcard

Not proprietary

OSI Compliant



Elastic logo

Elasticsearch Python Client

PyPI Version Python Versions Conda Version Downloads
Build Status on GitHub Buildkite Status on Buildkite Documentation Status

The official Python client for Elasticsearch.

Features

  • Translating basic Python data types to and from JSON
  • Configurable automatic discovery of cluster nodes
  • Persistent connections
  • Load balancing (with pluggable selection strategy) across available nodes
  • Failed connection penalization (time based - failed connections won't be retried until a timeout is reached)
  • Support for TLS and HTTP authentication
  • Thread safety across requests
  • Pluggable architecture
  • Helper functions for idiomatically using APIs together

Installation

Download the latest version of Elasticsearch or sign-up for a free trial of Elastic Cloud.

Refer to the Installation section of the getting started documentation.

Connecting

Refer to the Connecting section of the getting started documentation.

Usage


Compatibility

Language clients are forward compatible: each client version works with equivalent and later minor versions of Elasticsearch without breaking.

Compatibility does not imply full feature parity. New Elasticsearch features are supported only in equivalent client versions. For example, an 8.12 client fully supports Elasticsearch 8.12 features and works with 8.13 without breaking; however, it does not support new Elasticsearch 8.13 features. An 8.13 client fully supports Elasticsearch 8.13 features.

Elasticsearch version elasticsearch-py branch
main main
9.x 9.x
9.x 8.x
8.x 8.x

Elasticsearch language clients are also backward compatible across minor versions — with default distributions and without guarantees.

[!TIP] To upgrade to a new major version, first upgrade Elasticsearch, then upgrade the Python Elasticsearch client.

If you need to work with multiple client versions, note that older versions are also released as elasticsearch7 and elasticsearch8.

Documentation

Documentation for the client is available on elastic.co and Read the Docs.

Try Elasticsearch and Kibana locally

If you want to try Elasticsearch and Kibana locally, you can run the following command:

curl -fsSL https://elastic.co/start-local | sh

This will run Elasticsearch at http://localhost:9200 and Kibana at http://localhost:5601.

More information is available here.

Contributing

See CONTRIBUTING.md

License

This software is licensed under the Apache License 2.0. See NOTICE.