This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Muffin-ElasticSearch – A simple ElasticSearch plugin for muffin framework.

Requirements

  • python >= 3.4
  • muffin >= 0.5.5
  • aioes == 0.4

Installation

Muffin-ElasticSearch should be installed using pip:

pip install muffin-elasticsearch

Usage

Add muffin-elasticsearch to muffin plugin list:

import muffin


app = muffin.Application(
    'example',

    PLUGINS=(
        'muffin_elasticsearch',
    )
)

And use ElasticSearch plugin:

@app.register('/search')
class Example(muffin.Handler):

    @asyncio.coroutine
    def post(self, request):
        body = yield from request.json()
        result = yield from app.ps.elasticsearch.create(
            index='my-index',
            doc_type='test',
            id=42,
            body=body
        )
        return muffin.json_response(
            data=result, status=201
        )


    @asyncio.coroutine
    def get(self, request):
        ret = yield from app.ps.elasticsearch.get(
            index='my-index',
            doc_type='test-type',
            id=42
        )
        return muffin.json_response(data=result)

Options

ELASTICSEARCH_ENDPOINTS List of ElasticSearch servers (['localhost:9200'])

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/drgarcia1986/muffin-elasticsearch/issues

Contributing

Development of Muffin-ElasticSearch happens at: https://github.com/drgarcia1986/muffin-elasticsearch

Contributors

License

Licensed under a MIT license.

Release History

Release History

0.0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
muffin-elasticsearch-0.0.2.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Jul 11, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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