Skip to content

Wrapper for pymongo to allow simple instantiation of MongoDB from configuration.

License

Notifications You must be signed in to change notification settings

mdcatapult/py-mongo

Repository files navigation

Klein Mongo

Module to allow simple instantiation of MongoDB from configuration

See the config.example.yml for example configuration.

Python

Uses python 3.7 but should be compatible with later versions.

Usage

connection = MongoConnection(config)

Development

We use virtualenv for local development environments: pip install virtualenv.

Once installed, run:

virtualenv -p python3.7 venv
source venv/bin/activate
pip install -r requirements.txt

Then configure your IDE to use the python interpreter located at venv/bin/python.

Testing

python -m pytest

For test coverage you can run:

pytest --cov-report term:skip-covered --cov src/ test/

License

This project is licensed under the terms of the Apache 2 license, which can be found in the repository as LICENSE.txt

About

Wrapper for pymongo to allow simple instantiation of MongoDB from configuration.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages