MCPcopy Create free account
hub / github.com/cdgriffith/Box / to_msgpack

Method to_msgpack

box/box_list.py:702–709  ·  view source on GitHub ↗

Transform the BoxList object into a toml string. :param filename: File to write toml object too :return: string of TOML (if no filename provided)

(self, filename: str | PathLike | None = None, **kwargs)

Source from the content-addressed store, hash-verified

700 if msgpack_available:
701
702 def to_msgpack(self, filename: str | PathLike | None = None, **kwargs):
703 """
704 Transform the BoxList object into a toml string.
705
706 :param filename: File to write toml object too
707 :return: string of TOML (if no filename provided)
708 """
709 return _to_msgpack(self.to_list(), filename=filename, **kwargs)
710
711 @classmethod
712 def from_msgpack(cls, msgpack_bytes: bytes | None = None, filename: str | PathLike | None = None, **kwargs):

Calls 3

to_listMethod · 0.95
_to_msgpackFunction · 0.90
BoxErrorClass · 0.90