Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
def
_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
37
def
_have_zlib() -> bool:
Callers
4
run_scenario
Function · 0.90
test_compression
Method · 0.90
test_compression
Method · 0.90
validate_compressors
Function · 0.85
Calls
no outgoing calls
Tested by
3
run_scenario
Function · 0.72
test_compression
Method · 0.72
test_compression
Method · 0.72