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

Uploaded Source

Built Distribution

klein_mongo-2.0.11-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for klein_mongo-2.0.11.tar.gz
Algorithm Hash digest
SHA256 424e5707484589b39485f2fc76f4e40d49aff7c5d4a38540193684b45028afe5
MD5 61dba41b8424ab4cd326ce7106744f66
BLAKE2b-256 d1a65e511f521a1cd5953a46e0c9fe92f8ce3f1643c3066a62881fa2c683106c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klein_mongo-2.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 35018a8b8767d28d5b04d749d56135b4ce2a00394da4bb331066e02c614eb0b3
MD5 f69903be7b99345a204f256ad139b396
BLAKE2b-256 ac92ede8506eccb24e124f8c0e9cc65758d256d4d8c3075ce85b6c16f9522745

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