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.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
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.12.tar.gz
.
File metadata
- Download URL: klein_mongo-2.0.12.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c8cc6658b22bcca0f2210648abe62013787d3d02bea09f4c37df4cc2ab55e6 |
|
MD5 | 15d970061555011e8c510eff5141d32c |
|
BLAKE2b-256 | 70cf72c06ae05cec1bb655f27f5ce53235a414507d991cfcdd8c1ee9896263ac |
File details
Details for the file klein_mongo-2.0.12-py3-none-any.whl
.
File metadata
- Download URL: klein_mongo-2.0.12-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbfb0bbabe706f758d7c0fcbd6103b1a9f2b1a14e671d32796e5f0c40e331f08 |
|
MD5 | 338a7cf23f0836a9d83bb658dabec8f3 |
|
BLAKE2b-256 | 0c83c52e6a038a4940d67c37b6e3c903d51172e2d2549ac9349229f9662cde41 |