Skip to main content

Retrieve plugin for dserver using mongodb

Project description

dtool pypi tag test

Retrieve plugin for dserver using mongodb

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

cd dserver-retrieve-plugin-mongo
python setup.py install

To configure the connection to the mongo database.

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

Testing

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

pip install dservercore
pip install dserver-search-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.

Project details


Download files

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

Source Distribution

dserver_retrieve_plugin_mongo-0.4.1.tar.gz (12.8 kB view hashes)

Uploaded Source

Built Distribution

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