Skip to main content

A search engine for Flask using Pony ORM and Whoosh.

Project description

PonyWhoosh

flask-ponywhoosh

PyPI Package latest release Test

It’s the easiest way to add a search engine in your flask application on the shoulders of Pony ORM and Whoosh. To prove this, we’ve included some templates to render the search engine. Just checkout the example.

Install

  • The natural way:
$ pip install flask-ponywhoosh
  • Using the source:
$ git clone https://github.com/jonaprieto/flask-ponywhoosh.git
$ cd flask-ponywhoosh

If you are using python 2:

$ make install-py2

If you are using python 2:

$ make install-py3

A small example

Download the source of this package:

$ git clone https://github.com/jonaprieto/flask-ponywhoosh.git
$ cd flask-ponywhoosh

Then, you can run the example running these commands:

$ pip install -r requirements.txt
$ python example.py runserver

You will see in the shell some outputs showing settings of flask-ponywhoosh (debug mode is on by default). We provide two urls by default:

  • <localhost>/ : the form of the search engine
  • <localhost>/database : raw content of the test database

<localhost> is often http://127.0.0.1:5000.

Hacking

Customize the templates, URL routes and other stuffs, please checkout the documentation on:

Screenshots

Adding what fields of your models in your database you want to search.

PonyWhoosh1

PonyWhoosh2

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
flask_ponywhoosh-1.0.9-py2.py3-none-any.whl (11.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
flask-ponywhoosh-1.0.9.tar.gz (14.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page