skip to navigation
skip to content

Not Logged In

pyramid_rawes 0.1.0

RawES binding for pyramid

Latest Version: 0.4.1

pyramid_rawes

This library helps integrate rawes in a pyramid application.

https://travis-ci.org/koenedaele/pyramid_rawes.png

Installation

To install pyramid_rawes, use pip

pip install pyramid_rawes

Setup

To activate pyramid_rawes

config = Configurator()
config.include('pyramid_rawes')

By default, this will add an instance with all the default parameters (eg. Elastic Search is assumed to run at localhost:9200). To configure your rawes instance, you can use the pyramid settings file.

rawes.url = localhost:9500
rawes.connection_type = http

Once you have activated pyramid_rawes, a rawes instance is added to the registry.

Usage

To get a rawes instance, call get_rawes with the current application registry. Eg. in a view:

from pyramid_rawes import get_rawes

def search(request):
    ES = get_rawes(request.registry)
    # execute search
    # ...

History

0.1.0 (16-01-2013)

  • Initial version
 
File Type Py Version Uploaded on Size
pyramid_rawes-0.1.0.tar.gz (md5) Source 2013-01-16 3KB
  • Downloads (All Versions):
  • 12 downloads in the last day
  • 289 downloads in the last week
  • 673 downloads in the last month