Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Elasticsearch integration for Bottle

Project Description
Bottle Elasticsearch

.. image::

This bottle-elastic plugin integrates Elasticsearch with your Bottle
application. It injects a Elastic connection in your route and handle the
session cycle.

Support elasticsearch 2.x

Usage Example:

.. code-block:: python

from bottle import Bottle
from bottle_elastic import ElasticPlugin
from datetime import datetime

app = Bottle()
plugin = ElasticPlugin(hosts=["localhost:9200"])

@app.route('/', method='GET')
def index(elastic):
# elastic search operation
return "ok"

@app.route('/create/', method='POST')
def create(elastic):
doc = {
'name': 'bsao',
'text': 'Elasticsearch: cool.',
response = elastic.index(index="test-index", doc_type='tweet', id=1, body=doc)
return response

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bottle-elastic-0.2.1.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Apr 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting