elasticsearch 9.1.1


pip install elasticsearch

  Latest version

Released: Sep 12, 2025


Meta
Author: Elastic Client Library Maintainers
Maintainer: Elastic Client Library Maintainers
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

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.

License

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

9.1.1 Sep 12, 2025
9.1.0 Jul 30, 2025
9.0.4 Sep 12, 2025
9.0.3 Jul 30, 2025
9.0.2 Jun 05, 2025
9.0.1 Apr 28, 2025
9.0.0 Apr 15, 2025
8.19.1 Sep 12, 2025
8.19.0 Jul 30, 2025
8.18.1 Apr 29, 2025
8.18.0 Apr 15, 2025
8.17.2 Mar 04, 2025
8.17.1 Jan 23, 2025
8.17.0 Dec 16, 2024
8.16.0 Nov 13, 2024
8.15.1 Sep 10, 2024
8.15.0 Aug 13, 2024
8.14.0 Jun 06, 2024
8.13.2 May 24, 2024
8.13.1 May 03, 2024
8.13.0 Mar 27, 2024
8.12.1 Feb 22, 2024
8.12.0 Jan 19, 2024
8.11.1 Dec 08, 2023
8.11.0 Nov 13, 2023
8.10.1 Oct 13, 2023
8.10.0 Sep 22, 2023
8.9.0 Jul 27, 2023
8.8.2 Jul 06, 2023
8.8.1 Jul 06, 2023
8.8.0 May 25, 2023
8.7.0 Apr 06, 2023
8.6.2 Feb 16, 2023
8.6.1 Jan 27, 2023
8.6.0 Jan 10, 2023
8.5.3 Dec 08, 2022
8.5.2 Nov 23, 2022
8.5.1 Nov 21, 2022
8.5.0 Nov 02, 2022
8.4.3 Oct 06, 2022
8.4.2 Sep 20, 2022
8.4.1 Sep 06, 2022
8.4.0 Aug 25, 2022
8.3.3 Jul 28, 2022
8.3.2 Jul 28, 2022
8.3.1 Jun 30, 2022
8.3.0 Jun 29, 2022
8.2.3 Jun 15, 2022
8.2.2 Jun 01, 2022
8.2.1 Jun 01, 2022
8.2.0 May 03, 2022
8.1.3 Apr 26, 2022
8.1.2 Mar 31, 2022
8.1.1 Mar 22, 2022
8.1.0 Mar 08, 2022
8.0.1 Mar 01, 2022
8.0.0 Feb 10, 2022
8.0.0b2 Feb 03, 2022
8.0.0b1 Jan 18, 2022
8.0.0a4 Jan 04, 2022
8.0.0a3 Dec 09, 2021
8.0.0a2 Dec 03, 2021
8.0.0a1 Nov 29, 2021
7.17.12 Sep 19, 2024
7.17.9 Feb 02, 2023
7.17.8 Dec 08, 2022
7.17.7 Oct 26, 2022
7.17.6 Aug 25, 2022
7.17.5 Aug 25, 2022
7.17.4 Jun 01, 2022
7.17.3 Apr 26, 2022
7.17.2 Mar 31, 2022
7.17.1 Feb 28, 2022
7.17.0 Feb 01, 2022
7.16.3 Jan 13, 2022
7.16.2 Dec 27, 2021
7.16.1 Dec 13, 2021
7.16.0 Dec 07, 2021
7.15.2 Nov 10, 2021
7.15.1 Oct 14, 2021
7.15.0 Sep 22, 2021
7.15.0a1 Sep 09, 2021
7.14.2 Sep 21, 2021
7.14.1 Sep 01, 2021
7.14.0 Aug 03, 2021
7.14.0a2 Jul 27, 2021
7.14.0a1 Jul 13, 2021
7.13.4 Jul 20, 2021
7.13.3 Jul 07, 2021
7.13.2 Jun 21, 2021
7.13.1 Jun 02, 2021
7.13.0 May 25, 2021
7.12.1 Apr 27, 2021
7.12.0 Mar 23, 2021
7.11.0 Feb 10, 2021
7.11.0b1 Feb 02, 2021
7.10.1 Dec 09, 2020
7.10.0 Nov 11, 2020
7.10.0a2 Oct 20, 2020
7.10.0a1 Oct 14, 2020
7.9.1 Aug 20, 2020
7.9.0 Aug 18, 2020
7.9.0a1 Jul 20, 2020
7.8.1 Jul 30, 2020
7.8.0 Jun 18, 2020
7.8.0a1 May 29, 2020
7.7.1 May 26, 2020
7.7.0 May 13, 2020
7.7.0a2 Apr 03, 2020
7.7.0a1 Apr 01, 2020
7.6.0 Mar 19, 2020
7.6.0a1 Mar 16, 2020
7.5.1 Jan 19, 2020
7.1.0 Nov 14, 2019
7.0.5 Oct 01, 2019
7.0.4 Aug 22, 2019
7.0.3 Aug 21, 2019
7.0.2 May 28, 2019
7.0.1 May 10, 2019
7.0.0 Apr 11, 2019
6.8.2 Mar 09, 2021
6.8.1 Mar 31, 2020
6.8.0 Mar 12, 2020
6.4.0 May 28, 2019
6.3.1 Aug 09, 2018
6.3.0 Jun 20, 2018
6.2.0 Mar 20, 2018
6.1.1 Jan 06, 2018
6.0.0 Nov 14, 2017
5.5.3 Jun 22, 2018
5.5.2 Jan 16, 2018
5.5.1 Nov 10, 2017
5.5.0 Nov 10, 2017
5.4.0 May 18, 2017
5.3.0 Mar 31, 2017
5.2.0 Feb 12, 2017
5.1.0 Jan 11, 2017
5.0.1 Nov 02, 2016
5.0.0 Oct 19, 2016
2.4.1 Jan 03, 2017
2.4.0 Aug 17, 2016
2.3.0 Feb 29, 2016
2.2.0 Jan 05, 2016
2.1.0 Oct 19, 2015
2.0.0 Oct 13, 2015
1.9.0 Oct 19, 2015
1.8.0 Oct 13, 2015
1.7.0 Sep 21, 2015
1.6.0 Jun 10, 2015
1.5.0 May 18, 2015
1.4.0 Feb 11, 2015
1.3.0 Dec 31, 2014
1.2.0 Aug 03, 2014
1.1.1 Jul 04, 2014
1.1.0 Jul 02, 2014
1.0.0 Feb 11, 2014
0.4.5 Feb 11, 2014
0.4.4 Dec 23, 2013
0.4.3 Oct 22, 2013
0.4.2 Oct 08, 2013
0.4.1 Sep 24, 2013

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
elastic-transport (<10,>=9.1.0)
python-dateutil
typing-extensions