MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / check_min_pymongocrypt

Function check_min_pymongocrypt

pymongo/encryption_options.py:43–52  ·  view source on GitHub ↗

Raise an appropriate error if the min pymongocrypt is not installed.

()

Source from the content-addressed store, hash-verified

41
42
43def check_min_pymongocrypt() -> None:
44 """Raise an appropriate error if the min pymongocrypt is not installed."""
45 pymongocrypt_version, required_version, is_valid = check_for_min_version("pymongocrypt")
46 if not is_valid:
47 raise ConfigurationError(
48 f"client side encryption requires pymongocrypt>={required_version}, "
49 f"found version {pymongocrypt_version}. "
50 "Install a compatible version with: "
51 "python -m pip install 'pymongo[encryption]'"
52 )
53
54
55class AutoEncryptionOpts:

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.85

Calls 2

check_for_min_versionFunction · 0.90
ConfigurationErrorClass · 0.90

Tested by

no test coverage detected