Skip to main content

Elasticsearch Serverless Python Client

PyPI Version Python Versions Downloads Documentation Status

[!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.

Metadata

Release files for elasticsearch-serverless 0.8.0.20231031

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elasticsearch-serverless 0.8.0.20231031
File Size Uploaded
elasticsearch_serverless-0.8.0.20231031.tar.gz 343.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elasticsearch-serverless 0.8.0.20231031
File Interpreter ABI Platform
elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl Python 3 none any Details

Total release size: 748.3 kB

Release files / elasticsearch_serverless-0.8.0.20231031.tar.gz

Download URL elasticsearch_serverless-0.8.0.20231031.tar.gz
Size 343.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e9189b635619c61ec0645777f3c98a3f240b3b34fbe251f430f77fb24a513a23
BLAKE2b-256 checksum
How to use checksums
3820a8ae00c2cc8f835d61a276d69317343ad75cb0b5565a0da554b76525f5da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl

Download URL elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl
Size 404.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8b58779f1b20c0d17f853c11e8cc2ccd3da61e43b48eb783173f8de9d568e2a
BLAKE2b-256 checksum
How to use checksums
2d225712308e7176ecb9ec008d93bc7ad6ce23337a88e36f7a1e2f6a53d6045e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page