Flask-Elastic-0.2
توضیحات
Integrates official client for Elasticsearch into Flask
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Flask-Elastic-0.2 |
| نام | Flask-Elastic |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marcel Tschopp |
| ایمیل نویسنده | mt@corova.net |
| آدرس صفحه اصلی | UNKNOWN |
| آدرس اینترنتی | https://pypi.org/project/Flask-Elastic/ |
| مجوز | BSD |
Flask-Elastic
=============
Integrates the official `Python low-level client for Elasticsearch <https://github.com/elasticsearch/elasticsearch-py>`_ into Flask.
Installation
------------
Flask-Elastic is pip installable:
$ pip install Flask-Elastic
Configure
---------
The only configuration is ``ELASTICSEARCH_URL``, defaults to ``localhost:9200``. You can pass any kwargs to ``Elastic()`` for further configuration. The kwargs will be passed to ``Elasticsearch()``.
Usage
-----
Import the extension into your Flask project and initialize:
from flask.ext.elastic import Elastic
elastic = Elastic(app)
Development
-----------
Source code is hosted on `GitHub <https://github.com/bbmogool/flask-elastic>`_ (contributions are welcome).
نحوه نصب
نصب پکیج whl Flask-Elastic-0.2:
pip install Flask-Elastic-0.2.whl
نصب پکیج tar.gz Flask-Elastic-0.2:
pip install Flask-Elastic-0.2.tar.gz