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

Uploaded Source

Built Distribution

klein_mongo-2.0.12a0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file klein_mongo-2.0.12a0.tar.gz.

File metadata

  • Download URL: klein_mongo-2.0.12a0.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.12a0.tar.gz
Algorithm Hash digest
SHA256 9ddf17e0bfada93e82a9e962bacbe9089993f8dfe22cdff990d9cfbe381decb9
MD5 0834bb563d704e51f9d19e7ca2663383
BLAKE2b-256 3e4c1f12ac7732ec99e3e6753b3969f6f6bb7800da8a87e6fd0d7616766544ad

See more details on using hashes here.

File details

Details for the file klein_mongo-2.0.12a0-py3-none-any.whl.

File metadata

File hashes

Hashes for klein_mongo-2.0.12a0-py3-none-any.whl
Algorithm Hash digest
SHA256 543f48b1cbcd08d4e9a98689f7b32df883c18d839e4438bf28a47c41e61e0fa5
MD5 9fdd60d2cc49128c9ba4fe7317ebf5e4
BLAKE2b-256 914c39763c287fb5874d22f293cb49761ab20e29ffe8e408d1e4d3a05f3fe763

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