Metadata-Version: 2.1
Name: dtool-lookup-server-retrieve-plugin-mongo
Version: 0.2.0
Summary: Retrieve plugin for dtool-lookup-server using mongodb
Home-page: https://github.com/jic-dtool/dtool-lookup-server-retrieve-plugin-mongo
Download-URL: https://github.com/jic-dtool/dtool-lookup-server-retrieve-plugin-mongo/tarball/0.2.0
Author: Tjelvar Olsson
Author-email: tjelvar.olsson@gmail.com
License: MIT
Description-Content-Type: text/x-rst
License-File: LICENSE.rst

README
======

Retrieve plugin for dtool-lookup-server using mongodb

To install the dtool-lookup-server-retrieve-plugin-mongo package.

.. code-block:: bash

    cd dtool-lookup-server-retrieve-plugin-mongo
    python setup.py install


To configure the connection to the mongo database.

.. code-block:: bash

    export RETRIEVE_MONGO_URI="mongodb://localhost:27017/"
    export RETRIEVE_MONGO_DB="dtool_lookup_server"
    export RETRIEVE_MONGO_COLLECTION="datasets"


Testing
^^^^^^^

Testing requires a minimal ``dtool-lookup-server`` installation including a
functional search plugin, i.e.

.. code-block:: bash

    pip install dtool-lookup-server
    pip install dtool-lookup-server-search-plugin-mongo

Run tests from within repository root with ``pytest``.
