MCPcopy Create free account
hub / github.com/ccxt/ccxt / unpack

Function unpack

python/ccxt/static_dependencies/msgpack/__init__.py:39–47  ·  view source on GitHub ↗

Unpack an object from `stream`. Raises `ExtraData` when `stream` contains extra bytes. See :class:`Unpacker` for options.

(stream, **kwargs)

Source from the content-addressed store, hash-verified

37
38
39def unpack(stream, **kwargs):
40 """
41 Unpack an object from `stream`.
42
43 Raises `ExtraData` when `stream` contains extra bytes.
44 See :class:`Unpacker` for options.
45 """
46 data = stream.read()
47 return unpackb(data, **kwargs)
48
49
50# alias for compatibility to simplejson/marshal/pickle.

Callers

nothing calls this directly

Calls 2

unpackbFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…