Skip to content

applauncher-team/elasticsearch_bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch bundle for AppLauncher

Elasticsearch support for applauncher. This is a wrapper of the python standard library so there not any dependecies

Installation

pip install elasticsearch_bundle

Then add to your main.py

import elasticsearch_bundle

bundle_list = [
    elasticsearch_bundle.ElasticsearchBundle(),
]

Configuration

elasticsearch:
   hosts:
     - localhost
   use_iam: False,
   iam_access_key: "",
   iam_secret_key: "",
   iam_region: "",

To use Amazon IAM for authentication, put "use_iam" to True and fill the other fields

Using the bundle

Just inject the instance

import inject
from elasticsearch import Elasticsearch
es = inject.instance(Elasticsearch)
print(es)

About

Elasticsearch support for applauncher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages