Skip to main content

xiaoapi elasticsearch

Project description

xiaoapi-elasticsearch

xiaoapi的elasticsearch扩展包

安装

pip install xiaoapi-elasticsearch

配置

需要在 application/settings 中 添加以下配置:

# Elasticsearch 配置
ELASTICSEARCH_ENABLE = False
ELASTICSEARCH_USER = "elastic"
ELASTICSEARCH_PASSWORD = "gv3Z0Nnti2gdApgzLmUN"
ELASTICSEARCH_URL = "http://127.0.0.1:9200"

然后在 application/settings 中的 EVENTS 里引入 xiaoapi_elasticsearch

EVENTS = [
    "xiaoapi_elasticsearch.connect_elasticsearch",
]

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

xiaoapi-elasticsearch-0.0.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

xiaoapi_elasticsearch-0.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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