Skip to content

pyapp-org/pyapp.elasticsearch

development
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

pyApp - Elastic Search

Let us handle the boring stuff!

Once you go Black...

Tests

Maintainability Test Coverage

This extension provides a Elasticsearch client object configured via pyApp settings.

Installation

Install with pip:

pip install pyApp-elasticsearch-py

For AsyncIO support either:

pip install pyApp-elasticsearch-py[async]

# - OR -

pip install pyApp-elasticsearch-py aiohttp

Add the ELASTICSEARCH block into your runtime settings file:

ELASTICSEARCH = {
    "default": {
        "host": "localhost",
    }
}

Note

In addition to the host any argument that can be provided to elasticsearch.Elasticsearch or elasticsearch.AsyncElasticsearch can be provided.

Usage

The following example creates an Elasticsearch client instance:

from pyapp_ext.elasticsearch import get_client

es = get_client()

Or an async Elasticsearch client instance:

from pyapp_ext.elasticsearch import get_async_client

es = get_async_client()

API

About

πŸ”Ž Elasticsearch pyApp extension

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages