Python client for Elasticsearch Serverless
Project description
Elasticsearch Serverless Python Client
[!WARNING] Starting with the release of the Elastic Stack 9.0.0, this client will be discontinued. Instead, you can use the latest version of the Elasticsearch Python Client to build your Elasticsearch Serverless Python applications.
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
Quick Start
# Import the client from the 'elasticsearch' module
# Import the client from the 'elasticsearch' module
>>> from elasticsearch_serverless import Elasticsearch
# Instantiate a client instance
>>> client = Elasticsearch("http://localhost:9200")
# Call an API, in this example `info()`
>>> resp = client.info()
# View the result
>>> resp
{
"name" : "instance-name",
"cluster_name" : "cluster-name",
"cluster_uuid" : "cluster-uuid",
"version" : {
"number" : "7.14.0",
...
},
"tagline" : "You know, for Search"
}
License
This software is licensed under the Apache License 2.0. See NOTICE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elasticsearch_serverless-0.8.0.20231031.tar.gz.
File metadata
- Download URL: elasticsearch_serverless-0.8.0.20231031.tar.gz
- Upload date:
- Size: 343.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9189b635619c61ec0645777f3c98a3f240b3b34fbe251f430f77fb24a513a23
|
|
| MD5 |
19b6ac39a9e61e09e76413349300409a
|
|
| BLAKE2b-256 |
3820a8ae00c2cc8f835d61a276d69317343ad75cb0b5565a0da554b76525f5da
|
File details
Details for the file elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl.
File metadata
- Download URL: elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl
- Upload date:
- Size: 404.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8b58779f1b20c0d17f853c11e8cc2ccd3da61e43b48eb783173f8de9d568e2a
|
|
| MD5 |
0bd392fb4f66d0e2b8adda4ec329732b
|
|
| BLAKE2b-256 |
2d225712308e7176ecb9ec008d93bc7ad6ce23337a88e36f7a1e2f6a53d6045e
|