MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _have_snappy

Function _have_snappy

pymongo/compression_support.py:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def _have_snappy() -> bool:
29 try:
30 import snappy # type:ignore[import-untyped] # noqa: F401
31
32 return True
33 except ImportError:
34 return False
35
36
37def _have_zlib() -> bool:

Callers 4

run_scenarioFunction · 0.90
test_compressionMethod · 0.90
test_compressionMethod · 0.90
validate_compressorsFunction · 0.85

Calls

no outgoing calls

Tested by 3

run_scenarioFunction · 0.72
test_compressionMethod · 0.72
test_compressionMethod · 0.72