Skip to main content

A flask blueprint providing an API for accessing and searching an ElasticSearch index created from source datapackages

Project description

https://travis-ci.org/OpenBudget/apies.svg?branch=master http://img.shields.io/coveralls/OpenBudget/apies.svg?branch=master

apies is a flask blueprint providing an API for accessing and searching an ElasticSearch index created from source datapackages.

endpoints

TBD

configuration

Flask configuration for this blueprint:

from apies import apies_blueprint
import elasticsearch

app.register_blueprint(
    apies_blueprint(['path/to/datapackage.json', Package(), ...],
                    elasticsearch.Elasticsearch(...),
                    'index-to-search-in',
                    document_doctype='document',
                    dont_highlight=['fields', 'not.to', 'highlight']),
    url_prefix='/search/'
)

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

apies-0.0.16.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

apies-0.0.16-py2.py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 2 Python 3

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