Skip to main content

Rawes bindings for pyramid

Project description

pyramid_rawes

This library helps integrate rawes in a pyramid application.

https://travis-ci.org/koenedaele/pyramid_rawes.png?branch=master https://coveralls.io/repos/koenedaele/pyramid_rawes/badge.png?branch=master https://badge.fury.io/py/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 = http://localhost:9500

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
    # ...

You can also get a rawes instance by calling the get_rawes directive on the config.

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

History

0.5.1 (26-09-2014)

  • If only one url is specified, don’t pass a list to rawes, but a string. This allows rawes to autodetect paths. (#2)

0.5.0 (27-08-2014)

  • Switch to py.test for unit tests.

  • Add ability to specify several ES hosts in the url setting.

0.4.1 (15-04-2014)

  • Restore compatibility with zope.interface 4.1.x

  • Add Coveralls

0.4.0 (27-09-2013)

  • Make pyramid_rawes compatible with rawes 0.5.x

  • Introduce unit test support for py3k (requires rawes 0.5.1)

  • Ability to specify json_encoder and json_decoder as dotted python name.

  • Dropped support for py26.

0.3.0 (29-04-2013)

  • Make pyramid_rawes compatible with rawes 0.4.0.

0.2.1 (24-04-2013)

  • Fixed dependency on rawes < 0.4.0. Next release will upgrade to rawes 0.4.0.

0.2.0 (18-01-2013)

  • Added get_rawes as a config directive

  • Renamed IRawES to IRawes

  • Pep8 fixes

0.1.0 (16-01-2013)

  • Initial version

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

pyramid_rawes-0.5.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file pyramid_rawes-0.5.1.tar.gz.

File metadata

File hashes

Hashes for pyramid_rawes-0.5.1.tar.gz
Algorithm Hash digest
SHA256 98aa748eb33d2ea0c9edfb96f3e8ae37086313a02750b5589fe0f389cd9c2c90
MD5 c5643aaa881d11937d7b6f48cb8a87c6
BLAKE2b-256 0b6c23cb77954d7f20035e4c7a5b94da6f49cdbc7d2798a9356b4497cb495945

See more details on using hashes here.

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