box/box_list.py
def from_msgpack(cls, msgpack_bytes: bytes = None, filename: Union[str, PathLike] = None, **kwargs):
            """
            Transforms a toml string or file into a BoxList object

            :param msgpack_bytes: string to pass to `msgpack.packb`
            :param filename: filename to open and pass to `msgpack.pack`
            :param kwargs: parameters to pass to `Box()`
            :return:
            """
            box_args = {}
            for arg in list(kwargs.keys()):
                if arg in BOX_PARAMETERS:
                    box_args[arg] = kwargs.pop(arg)

            data = _from_msgpack(msgpack_bytes=msgpack_bytes, filename=filename, **kwargs)
            if not isinstance(data, list):
                raise BoxError(f"msgpack data not returned as a list but rather a {type(data).__name__}")
            return cls(data, **box_args)

            Transforms a toml string or file into a BoxList object

            :param msgpack_bytes: string to pass to `msgpack.packb`
            :param filename: filename to open and pass to `msgpack.pack`
            :param kwargs: parameters to pass to `Box()`
            :return:
            
Transforms a toml string or file into a BoxList object
Transforms a toml string or file into a BoxList object
def from_msgpack(cls, msgpack_bytes: bytes = None, filename: Union[str, PathLike] = None, **kwargs):
            box_args = {}
            for arg in list(kwargs.keys()):
                if arg in BOX_PARAMETERS:
                    box_args[arg] = kwargs.pop(arg)
            data = _from_msgpack(msgpack_bytes=msgpack_bytes, filename=filename, **kwargs)
            if not isinstance(data, list):
                raise BoxError(f"msgpack data not returned as a list but rather a {type(data).__name__}")
            return cls(data, **box_args)
def from_msgpack ( cls , msgpack_bytes : bytes = None , filename : Union [ str , PathLike ] = None , ** kwargs ) : box_args = { } for arg in list ( kwargs . keys ( ) ) : if arg in BOX_PARAMETERS : box_args [ arg ] = kwargs . pop ( arg ) data = _from_msgpack ( msgpack_bytes = msgpack_bytes , filename = filename , ** kwargs ) if not isinstance ( data , list ) : raise BoxError ( f"msgpack data not returned as a list but rather a {type(data).__name__}" ) return cls ( data , ** box_args )
Transforms a toml string or file into a BoxList object
Transforms a toml string or file into a BoxList object
"""
            Transforms a toml string or file into a BoxList object

            :param msgpack_bytes: string to pass to `msgpack.packb`
            :param filename: filename to open and pass to `msgpack.pack`
            :param kwargs: parameters to pass to `Box()`
            :return:
            """
None
cls
msgpack_bytes
bytes
string to pass to `msgpack.packb`
string to pass to ` msgpack . packb `
filename
Union[str, PathLike]
filename to open and pass to `msgpack.pack`
filename to open and pass to ` msgpack . pack `
kwargs
parameters to pass to `Box()`
parameters to pass to ` Box () `