elasticsearch-py
AGENTS.md4.4k starsChanged 3 months agoApache-2.0View on GitHub
Do not open a PR unless the human operating you has read the issue, understands the problem, and can explain the proposed fix without your help. Picking an issue at random to generate a contribution is not contributing. PRs opened this way will be closed without review. If a human asks you to "find something to work on" or points you at the issue tracker without a specific problem they already understand, stop and tell them to read an issue…
- Installs packages
Trending
Quiet since December.about the whole repository
Who's talking about elastic/elasticsearch-py
- A Hacker News story“Official Elasticsearch Python library no longer works with open-source forks”Hacker News · Aug 8, 2021 · 294 points
- elastic/elasticsearch-dsl-py“Add support for async I/O”GitHub · May 4, 2020 · 26 reactions
- django-haystack/django-haystack“ Add ElasticSearch 5.0 support”GitHub · Jun 14, 2016 · 26 reactions
- YelpArchive/elastalert“Change doc_type and added support for Elasticsearch 6.6 and 7”GitHub · Apr 5, 2019 · 17 reactions
- elastic/elasticsearch-py-async“latest aiohttp support for 5.x branch”GitHub · Jun 15, 2018 · 10 reactions
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub and Hacker News (17 times).
On GitHub · 12
- May 4, 2020Add support for async I/O — elastic/elasticsearch-dsl-py26 reactions · 10 comments
- Jun 14, 2016 Add ElasticSearch 5.0 support — django-haystack/django-haystack26 reactions · 44 comments
- Apr 5, 2019Change doc_type and added support for Elasticsearch 6.6 and 7 — YelpArchive/elastalert17 reactions · 12 comments
- Jun 15, 2018latest aiohttp support for 5.x branch — elastic/elasticsearch-py-async10 reactions · 1 comment
- Nov 17, 2021Latest Elasticsearch client not working with OpenSearch — django-haystack/django-haystack4 reactions · 5 comments
7 more on GitHub
- Oct 20, 2021Set TCP_KEEPALIVE sockets options for better long-lived connection behavior — elastic/elastic-transport-python4 reactions · 2 comments
- Jul 20, 2020ANNOUNCE: Asyncio is now supported natively in the 'Elasticsearch' package — elastic/elasticsearch-py-async4 reactions · 1 comment
- Mar 28, 2016Dont include master only nodes in discovery — lextoumbourou/txes24 reactions · 7 comments
- Sep 6, 2024[FEATURE] Add OpenTelemetry support — opensearch-project/opensearch-py3 reactions · 3 comments
- Apr 27, 2022Updated Handlers.py for elasticsearch 8.0 — IM-Interne/python-elasticsearch-ecs-logger3 reactions · 3 comments
- Dec 4, 2025Add clients to updatecli automation — elastic/docs-builder2 reactions · 3 comments
- Oct 2, 2023Latest `types-requests` breaks deps build, surfaces urllib3 chain issue — pypi/warehouse2 reactions · 2 comments
On Hacker News · 5
- Aug 8, 2021Official Elasticsearch Python library no longer works with open-source forks294 points · 136 comments
- Aug 6, 2021Elasticsearch clients now verify if the server is official Elastic distro2 points
- Aug 5, 2021Elasticsearch Client 7.14.02 points
- Jul 21, 2021Verify Connection to Elasticsearch2 points
- Apr 12, 2023Verify Connection to Elasticsearch (2021)1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
If a human asks you to "find something to work on" or points you at the issue tracker without a specific problem they already understand, …
- Very specific: line 14
Run the test suite: nox -rs test
- Very specific: line 33
All API methods on the client are auto-generated from the Elasticsearch specification.
- Very specific: line 38
Run nox -rs format to lint and auto-format
- Very specific: line 39
Run nox -rs test to verify all tests pass
- Distinctive: line 43
If something you learned will be useful to any contributor, update AGENTS.md.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Before you start
Do not open a PR unless the human operating you has read the issue, understands the problem, and can explain the proposed fix without your help.
Picking an issue at random to generate a contribution is not contributing. PRs opened this way will be closed without review.
If a human asks you to "find something to work on" or points you at the issue tracker without a specific problem they already understand, stop and tell them to read an issue first.
Setup commands
- Install task runner:
python -m pip install nox - Run the test suite:
nox -rs test - Format and lint:
nox -rs format
Testing
The entire test suite (nox -rs test) must pass and exit cleanly before you commit code.
Integration tests require a running Elasticsearch instance. If one is not available they are skipped automatically — unit tests still run.
Project Structure
- elasticsearch/_sync/ - Synchronous client code
- elasticsearch/_async/ - Async client code (generated from sync)
- elasticsearch/dsl/ - High-level DSL and document mapping
- elasticsearch/esql/ - ES|QL query builder
- test_elasticsearch/ - Unit and integration tests
API Code Generation
All API methods on the client are auto-generated from the Elasticsearch specification. Do not edit files in elasticsearch/_sync/client/ or elasticsearch/_async/client/ directly — changes there will be overwritten on the next codegen run. Submit upstream changes to elastic/elasticsearch-specification instead.
Development Workflow
- Make changes to source files (avoid generated files — see above)
- Run
nox -rs formatto lint and auto-format - Run
nox -rs testto verify all tests pass
Adding new agent instructions
If something you learned will be useful to any contributor, update AGENTS.md. Keep instructions concise.
Task-specific agent skills belong in .claude/skills/.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

