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.
Metadata
Release files for dserver-retrieve-plugin-mongo 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dserver_retrieve_plugin_mongo-0.4.2.tar.gz | 13.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dserver_retrieve_plugin_mongo-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / dserver_retrieve_plugin_mongo-0.4.2.tar.gz
| Download URL | dserver_retrieve_plugin_mongo-0.4.2.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2b76d12ab6ca06132ca36e014451235a9b5ee0d318d7e190c0f888116e63bb0
|
|
BLAKE2b-256 checksum How to use checksums |
b8b7843d2daf965fc7c4d6e8b71c691f495bab222976f086237fa7de67a1a4cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / dserver_retrieve_plugin_mongo-0.4.2-py3-none-any.whl
| Download URL | dserver_retrieve_plugin_mongo-0.4.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e45973ea84daadfecccb6dedadda76a6fe9190d944c6c78a7e8970b06208f4f7
|
|
BLAKE2b-256 checksum How to use checksums |
86ed1efbf5c39673ae063f949a550771d4ff9997082918efbd24143afba6c46c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|