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

Function pack

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

Pack object `o` and write it to `stream` See :class:`Packer` for options.

(o, stream, **kwargs)

Source from the content-addressed store, hash-verified

18
19
20def pack(o, stream, **kwargs):
21 """
22 Pack object `o` and write it to `stream`
23
24 See :class:`Packer` for options.
25 """
26 packer = Packer(**kwargs)
27 stream.write(packer.pack(o))
28
29
30def packb(o, **kwargs):

Callers

nothing calls this directly

Calls 3

packMethod · 0.95
PackerClass · 0.85
writeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…