skillfed

elasticsearch6

Python client for Elasticsearch

elasticsearch6 v6.8.2 240.0K downloads/30d#8,912 on PyPI4,385
Permissive license Apache-2.0 Active released

What it is and what it does

elasticsearch6 is the official low-level Python client for Elasticsearch 6.x servers. It provides direct access to Elasticsearch REST APIs through a Python interface, handling connection pooling, load balancing across cluster nodes, automatic node discovery, and serialization of Python data types to JSON. The client is opinion-free and extensible, designed as a foundation for higher-level libraries rather than as a user-facing ORM.

The package connects over HTTP with optional SSL/TLS and authentication support, manages persistent connections with configurable retry and timeout behavior, and translates Python method calls into REST requests. It includes thread safety, pluggable node selection strategies, and failed-connection penalization to avoid hammering unavailable nodes.

Use it for:

  • Index and search documents in a 6.x server from a Python application.
  • Perform bulk operations, aggregations, and complex queries against a cluster.
  • Build a search backend for a web application or data pipeline needing full-text search.
  • Manage indices, mappings, and cluster settings programmatically.
  • Integrate into a data processing or analytics workflow.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Low-level Python client for Elasticsearch that handles HTTP communication, connection pooling, and serialization to the REST API.

Yes, if targeting Elasticsearch 6.x. This is the official client with low install friction, active maintenance status, no known vulnerabilities, and permissive Apache-2.0 licensing. Note that the latest release is 2021-03-09; verify whether a newer major version would be more appropriate for new projects.

Install

elasticsearch6 on PyPI

pip

pip install elasticsearch6

uv

uv add elasticsearch6

poetry

poetry add elasticsearch6

Installing elasticsearch6

Before you install

Low install friction with a single runtime dependency (urllib3). The package is actively maintained with recent commits and has been in production use for years.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install 'elasticsearch6>=6.8.2'

from elasticsearch6 import Elasticsearch
es = Elasticsearch()
es.indices.create(index='my-index', ignore=400)
es.index(index='my-index', doc_type='test-type', id=42, body={'data': 'value'})

Requires a matching major version Elasticsearch 6.x server running and accessible.

Verify before relying

  • Whether this package is still receiving security updates given the latest release was 2021-03-09.
  • Performance characteristics under high-concurrency workloads.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4)
Install friction low — pure-Python wheel
Runtime dependencies 1 — urllib3
Maintenance actively maintained — 1,984 days since the last release
Last repo commit
First released
Downloads 240,021/month — #8,912 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: elasticsearch6-6.8.2-py2.py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

elasticsearch python clientelasticsearch api wrapperelasticsearch http clientelasticsearch connection poolingelasticsearch rest client python
search-enginerest-apiclient-library

More Database packages