PyQt Elasticsearch Viewer
Elasticsearch ES可视化客户端工具
A simple, lightweight, cross-platform desktop GUI for browsing and managing Elasticsearch clusters.
This tool is a self-contained desktop application built with Python and PyQt6. It provides a user-friendly interface for performing common Elasticsearch operations like searching, creating, reading, updating, and deleting documents. It is designed to be minimal and portable, relying only on the requests library for communication with Elasticsearch, with no dependency on the official elasticsearch-py client.
(Note: Screenshot shows an earlier version; the final version includes more features like CRUD tabs and HTTPS options.)
✨ Features
- Flexible Connectivity: Connect to any Elasticsearch cluster via HTTP or HTTPS.
- Security Options:
- Support for username/password (Basic) authentication.
- Option to disable SSL certificate verification for connecting to clusters with self-signed certificates.
- Powerful Search: A dedicated tab for writing and executing complex JSON-based Query DSL searches.
- Full CRUD Functionality: A "Document CRUD" tab for easy single-document operations:
- Get: Retrieve a document by its ID.
- Index/Create: Create or update a document. Supports both user-defined and auto-generated IDs.
- Update: Partially update a document using the
_updateAPI. - Delete: Remove a document by its ID.
- Interactive Results Display: View results in a clear, expandable tree view that handles nested JSON structures gracefully.
- User-Friendly:
- Copy-Paste: Easily copy keys, values, or full key-value pairs from the results tree with
Ctrl+Cor a right-click menu. - Session Persistence: Automatically saves your last successful connection and query configuration, loading it on the next launch.
- Copy-Paste: Easily copy keys, values, or full key-value pairs from the results tree with
- Lightweight & Cross-Platform:
- Minimal dependencies:
PyQt6andrequests. - Runs on Windows, macOS, and Linux.
- Minimal dependencies:
🛠️ Installation
You can install es-viewer directly from PyPI.
-
Install with pip: Make sure you have Python 3 and pip installed, then run:
pip install es-viewer
-
Run the application: After installation, you can run the application from your terminal:
es-viewer
Alternative: Running from Source
If you prefer to run the application directly from the source code:
-
Clone the repository:
git clone https://github.com/isee15/es-viewer cd es-viewer
-
Install dependencies:
pip install PyQt6 requests
-
Run the application:
python es_gui.py
🚀 Usage
-
Run the application: If you installed via pip, run
es-viewerin your terminal. If running from source, usepython es_gui.py. -
Connection Panel:
- Fill in the
Host,Port, and targetIndex. - Check Use HTTPS if your cluster uses SSL/TLS.
- If using HTTPS with a self-signed certificate, you may need to uncheck Verify SSL Certificate.
- Check Enable Authentication and fill in your credentials if your cluster requires them.
- Fill in the
-
Search Tab:
- Write your full Elasticsearch Query DSL in the JSON editor.
- Click Execute Search to run the query.
- Results will be displayed in the tree view at the bottom.
-
Document CRUD Tab:
- Document ID: This field is required for
Get,Update, andDeleteoperations. It is optional forIndex/Create(if left blank, Elasticsearch will generate an ID). - Document Body:
- For
Index/Create, enter the full JSON content of the document. - For
Update, enter an update payload (e.g.,{"doc": {"field_to_update": "new_value"}}).
- For
- Click the corresponding button (
Get,Index/Create,Update,Delete) to perform the action. - The result of the operation will be displayed in the tree view below.
- Document ID: This field is required for
⚙️ Configuration
The application automatically saves your settings to a configuration file upon a successful search operation.
- File Location: The file is named
.es_viewer_config.jsonand is stored in your user home directory (e.g.,C:\Users\YourUseron Windows or/home/youruseron Linux). - Function: It stores the last used connection details, authentication state, and search query so you don't have to re-enter them every time you open the app.
- Security Note: The password is saved in plain text in this file. This is a security risk for production environments. Please use with caution.
📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for es-viewer 1.2.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| es_viewer-1.2.11.tar.gz | 19.3 kB | With provenance | Details for es_viewer-1.2.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| es_viewer-1.2.11-py3-none-any.whl | Python 3 | none | any | Details for es_viewer-1.2.11-py3-none-any.whl |
Total release size: 36.6 kB
Release files / es_viewer-1.2.11.tar.gz
| Download URL | es_viewer-1.2.11.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0225d2c2ef9c0808343fb1494d37694ff7b56437668074d5e9f05ec5ecfa9de
|
|
BLAKE2b-256 checksum How to use checksums |
73734eda2e7c1a2aeec68ecc1af83b86fc3bd6589a81104248e839481a337ede
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2025.
Transparency logRelease files / es_viewer-1.2.11-py3-none-any.whl
| Download URL | es_viewer-1.2.11-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cd91884f11c1c8758a3ec7739d87a5b603c8a6bd4a3379b2f242d835e8458a4
|
|
BLAKE2b-256 checksum How to use checksums |
d2419553fa071c9e2ef10b84c94dc12fe397cffe4d289bc6fd324ddda7ccf338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2025.
Transparency logSecurity for es-viewer 1.2.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for es_viewer-1.2.11.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.