Skip to main content

Python client for Elasticsearch Serverless

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elasticsearch_serverless-0.8.0.20231031.tar.gz (343.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file elasticsearch_serverless-0.8.0.20231031.tar.gz.

File metadata

File hashes

Hashes for elasticsearch_serverless-0.8.0.20231031.tar.gz
Algorithm Hash digest
SHA256 e9189b635619c61ec0645777f3c98a3f240b3b34fbe251f430f77fb24a513a23
MD5 19b6ac39a9e61e09e76413349300409a
BLAKE2b-256 3820a8ae00c2cc8f835d61a276d69317343ad75cb0b5565a0da554b76525f5da

See more details on using hashes here.

File details

Details for the file elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl.

File metadata

File hashes

Hashes for elasticsearch_serverless-0.8.0.20231031-py3-none-any.whl
Algorithm Hash digest
SHA256 e8b58779f1b20c0d17f853c11e8cc2ccd3da61e43b48eb783173f8de9d568e2a
MD5 0bd392fb4f66d0e2b8adda4ec329732b
BLAKE2b-256 2d225712308e7176ecb9ec008d93bc7ad6ce23337a88e36f7a1e2f6a53d6045e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page