Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

klein_mongo-3.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

klein_mongo-3.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file klein_mongo-3.0.0.tar.gz.

File metadata

  • Download URL: klein_mongo-3.0.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for klein_mongo-3.0.0.tar.gz
Algorithm Hash digest
SHA256 6acaaec8bb6882f345b5ac87465bc0f1d9b7d81a5432963822805b04dad5c5ae
MD5 831d9b391ca0840aca6a199893aec159
BLAKE2b-256 6ef915a54f9dcd755d8316504396b133519bb2b5f2ccc87f812b0ddbfd4a7856

See more details on using hashes here.

File details

Details for the file klein_mongo-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: klein_mongo-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for klein_mongo-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9001614f1dd5973274f07d035665293d0d48467d0a333906f5b9a15b29eb9824
MD5 ee087fcf7bb6b31a5141dc3fda432b46
BLAKE2b-256 ea6fb2dd235c7f369683d50ec9903cf181c004c181c5c6c79c462d5dce9b35a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page