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
Metadata
Release files for klein-mongo 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| klein_mongo-3.0.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| klein_mongo-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / klein_mongo-3.0.0.tar.gz
| Download URL | klein_mongo-3.0.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6acaaec8bb6882f345b5ac87465bc0f1d9b7d81a5432963822805b04dad5c5ae
|
|
BLAKE2b-256 checksum How to use checksums |
6ef915a54f9dcd755d8316504396b133519bb2b5f2ccc87f812b0ddbfd4a7856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|
Release files / klein_mongo-3.0.0-py3-none-any.whl
| Download URL | klein_mongo-3.0.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9001614f1dd5973274f07d035665293d0d48467d0a333906f5b9a15b29eb9824
|
|
BLAKE2b-256 checksum How to use checksums |
ea6fb2dd235c7f369683d50ec9903cf181c004c181c5c6c79c462d5dce9b35a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|