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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for klein_mongo-2.0.14.tar.gz
Algorithm Hash digest
SHA256 f782b66e3eac3c9e9ccbf41cf64667bec96837627de4df78afe41b794efacf9b
MD5 0400847da511cfbf26e3f01871c95423
BLAKE2b-256 82e4ab322688e400c49fead13fe6dac5113a9a2b5f60d5b7f852cbd3b1287c47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for klein_mongo-2.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 0e88e54abbba957b678d8c56fdfbd7820c803ce621170b19738a1ec361d72aef
MD5 8fb40ca33bfc92aa7c9dfb31e013cb66
BLAKE2b-256 5fd462e9c3615ec7a827ae91e5155b8c8c5169976f2050ab1d2eb68d877902d3

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