Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ compress
Method
compress
pymongo/compression_support.py:147–150 ·
view source on GitHub ↗
(self, data: bytes)
Source
from the content-addressed store, hash-verified
145
self.level = level
146
147
def
compress(self, data: bytes) -> bytes:
148
import
zlib
149
150
return
zlib.compress(data, self.level)
151
152
153
class
ZstdContext:
Callers
3
compress
Method · 0.45
compress
Method · 0.45
_compress
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected