elasticsearch6
Python client for Elasticsearch
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 elasticsearch6uv
uv add elasticsearch6poetry
poetry add elasticsearch6Installing 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
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
elastic-transportProvides shared HTTP transport classes and…
permissive · top 1,000 on PyPI
elasticsearch5Low-level Python client for Elasticsearch 5.x…
permissive · top 15,000 on PyPI
elasticsearch7Official Python client for Elasticsearch that…
permissive · top 15,000 on PyPI
elasticsearchOfficial Python client library for connecting…
permissive · top 1,000 on PyPI
elasticsearch-dslProvides a high-level Python API for building…
permissive · top 5,000 on PyPI
elasticsearch8-dslA high-level Python query builder for…
permissive · top 15,000 on PyPI
elasticsearch9Official Python client for Elasticsearch that…
permissive · top 15,000 on PyPI
es-clientBuilds and validates Elasticsearch client…
permissive · top 15,000 on PyPI
prawcoreprawcore provides low-level HTTP communication…
permissive · top 5,000 on PyPI
elastic-agent-clientA Python client library for communicating with…
unclear · top 15,000 on PyPI