Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.61 KB

README.rst

File metadata and controls

52 lines (34 loc) · 1.61 KB

dserver Search Plugin Mongo

dtool pypi tag test

Search plugin for dserver using mongodb

To install the dserver-search-plugin-mongo package.

cd dserver-search-plugin-mongo
pip install .

To configure the connection to the mongo database.

export SEARCH_MONGO_URI="mongodb://localhost:27017/"
export SEARCH_MONGO_DB="dserver"
export SEARCH_MONGO_COLLECTION="datasets"

Testing

Testing requires a minimal dserver installation including a functional retrieve plugin, i.e.

pip install dservercore
pip install dserver-retrieve-plugin-mongo

Installation with the [test] extension

pip install .[test]

installs these essential testing dependencies as well.

Run tests from within repository root with pytest.