MCPcopy Create free account
hub / github.com/EdupageAPI/edupage-api / __compress

Method __compress

edupage_api/compression.py:13–19  ·  view source on GitHub ↗
(data: bytes)

Source from the content-addressed store, hash-verified

11class RequestData:
12 @staticmethod
13 def __compress(data: bytes) -> bytes:
14 compressor = zlib.compressobj(
15 -1, zlib.DEFLATED, -15, 8, zlib.Z_DEFAULT_STRATEGY
16 )
17
18 compressor.compress(data)
19 return compressor.flush(zlib.Z_FINISH)
20
21 @staticmethod
22 def chromium_base64_encode(data: str) -> str:

Callers 1

__encode_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected