MongoDB integration
Project description
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.11 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file klein_mongo-2.0.16.tar.gz
.
File metadata
- Download URL: klein_mongo-2.0.16.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eef14c53ce4e7ac3b799633e23d253afcd12120e4150fe1b395a09c30df479f5 |
|
MD5 | 29e88a4d98090430d6d630293e660c7a |
|
BLAKE2b-256 | d00aa5a39c24b1211bae2bb57c7627b1fd346beb53eaa0a2c678974cea0d6280 |
File details
Details for the file klein_mongo-2.0.16-py3-none-any.whl
.
File metadata
- Download URL: klein_mongo-2.0.16-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd36d0b6bafb37539cbc3904e3d68046d8ab494090368ab17304a5f832a0153 |
|
MD5 | 35d818d241f7c64ec0b786a069c30900 |
|
BLAKE2b-256 | 2bf1a5ae0f473c94185bb9148ce3e276139abbae6ea6be83d1b7ce406622598e |