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.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


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-2.0.13.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: klein_mongo-2.0.13.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for klein_mongo-2.0.13.tar.gz
Algorithm Hash digest
SHA256 eefa00680eab5579756b2d05616b70ee0df285c5621c5ca961a1bdb86204469f
MD5 4a7cb721fa0af5dfc1a3f2a984333c2b
BLAKE2b-256 070ac83b38001b97bc0d69e9819cb4a07afefcfa41a2d470627bd89336417d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klein_mongo-2.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 aa834d3743ec122ab5f1cdb6827f6f1bb58116b4106261d07b6e7e1b0d1187cb
MD5 f13bcbfd90a495101074c4126d8a3249
BLAKE2b-256 064a24c9e4658fc755007f48f940b48c485adde72915c4a3a880c1b54d95deaf

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