Skip to main content

Elasticsearch data layer for eve rest framework

Project description

https://travis-ci.org/petrjasek/eve-elastic.png?branch=master

Eve-Elastic is elasticsearch data layer for eve REST framework.

Features

  • facets support

  • generate mapping for schema

License

Eve-Elastic is using GPLv3 license.

Install

$ pip install Eve-Elastic

Usage

import eve
form eve_elastic import Elastic

app = eve.Eve(data=Elastic)

Config

There are 2 options for Eve-Elastic taken from app.config:

  • ELASTICSEARCH_URL (default: 'http://localhost:9200/')

  • ELASTICSEARCH_INDEX - (default: 'eve')

Facets

To add a facets support for specific resource, add facets into its datasource:

DOMAIN = {
    'contacts': {
        'datasource':
            'facets': {
                'urgency': {'terms': {'field': 'urgency'}},
                'versioncreated': {'date_histogram': {'field': 'versioncreated', 'interval': 'hour'}}
            }
        }
    }

You will find more info about facets in elasticsearch docs.

Changelog

0.1.2 (2014-01-30)

  • Fix pip install (add missing MANIFEST file)

0.1.1 (2014-01-30)

  • Add changelog ;)

  • Migrate readme to rst and use it for long_description

0.1.0 (2014-01-28)

  • Initial release

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

Eve-Elastic-0.1.2.tar.gz (40.6 kB view details)

Uploaded Source

File details

Details for the file Eve-Elastic-0.1.2.tar.gz.

File metadata

  • Download URL: Eve-Elastic-0.1.2.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Eve-Elastic-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e81efa67e0a00ce79e785e9fd3c3bc7c83edeb1e9dc6e321eae534341db321b2
MD5 247761f8ebea7e48ac116e8d786f66bb
BLAKE2b-256 335f221e00e53e3de09903b29bf2a0498e9e704b8e2787f4bdb56c4b2cab26f8

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