MCPcopy 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
153class ZstdContext:

Callers 3

compressMethod · 0.45
compressMethod · 0.45
_compressFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected