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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: klein_mongo-2.0.7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.12

File hashes

Hashes for klein_mongo-2.0.7.tar.gz
Algorithm Hash digest
SHA256 9e9204c479d6582a7c19898a9ae1801cd41f97b67a16347fb4b7f0fde2bd922b
MD5 b417f82cddcaa1d06acbfb3e0ebb9bb3
BLAKE2b-256 92a08d2bb476fef82414982012a57181d5ade770e2e13991691090f1f4d75195

See more details on using hashes here.

File details

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

File metadata

  • Download URL: klein_mongo-2.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.12

File hashes

Hashes for klein_mongo-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5393505701b13043010d16d5b00f2050e2ae54838870f6350976877540fdb5
MD5 4bfd3ba7b77335f2bc79ab5700625002
BLAKE2b-256 d6a613bc8e6f8e65f2055e9ff17a67310a0bf16266469ce1d1d80ca356c9046a

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