pyparcel/api.py
def unload(data: bytes, *objs: Any, encoding: str = "utf-8") -> Tuple[Any]:
    """
    Converts *data* into python objects, in the order and format of *objs*

    :param encoding: encoding that strings are encoded in
    :param data: data to be converted
    :param objs: order and objects that data conforms to
    :return: One object if *objs* contains one element, or tuple of objects if *objs* contains more than 1 element
    """
    global global_encoding
    global_encoding = encoding
    if len(objs) == 0:
        raise TypeError("unload() takes a variable number of objects")
    if len(objs) == 1:
        return _unpack_helper(data, objs[0])[0]
    else:
        unpacked_objs: List[Any] = []
        for obj in objs:
            if len(data) == 0:
                raise Exception("Data did not match objects.")
            (result, data) = _unpack_helper(data, obj)
            unpacked_objs.append(result)
        if len(data) != 0:
            raise Exception(f"Data did not match objects.")
        return tuple(unpacked_objs)

    Converts *data* into python objects, in the order and format of *objs*

    :param encoding: encoding that strings are encoded in
    :param data: data to be converted
    :param objs: order and objects that data conforms to
    :return: One object if *objs* contains one element, or tuple of objects if *objs* contains more than 1 element
    
Converts *data* into python objects, in the order and format of *objs
Converts * data * into python objects in the order and format of * objs
def unload(data: bytes, *objs: Any, encoding: str = "utf-8") -> Tuple[Any]:
    global global_encoding
    global_encoding = encoding
    if len(objs) == 0:
        raise TypeError("unload() takes a variable number of objects")
    if len(objs) == 1:
        return _unpack_helper(data, objs[0])[0]
    else:
        unpacked_objs: List[Any] = []
        for obj in objs:
            if len(data) == 0:
                raise Exception("Data did not match objects.")
            (result, data) = _unpack_helper(data, obj)
            unpacked_objs.append(result)
        if len(data) != 0:
            raise Exception(f"Data did not match objects.")
        return tuple(unpacked_objs)
def unload ( data : bytes , * objs : Any , encoding : str = "utf-8" ) -> Tuple [ Any ] : global global_encoding global_encoding = encoding if len ( objs ) == 0 : raise TypeError ( "unload() takes a variable number of objects" ) if len ( objs ) == 1 : return _unpack_helper ( data , objs [ 0 ] ) [ 0 ] else : unpacked_objs : List [ Any ] = [ ] for obj in objs : if len ( data ) == 0 : raise Exception ( "Data did not match objects." ) ( result , data ) = _unpack_helper ( data , obj ) unpacked_objs . append ( result ) if len ( data ) != 0 : raise Exception ( f"Data did not match objects." ) return tuple ( unpacked_objs )
Converts *data* into python objects, in the order and format of *objs
Converts * data * into python objects in the order and format of * objs
"""
    Converts *data* into python objects, in the order and format of *objs*

    :param encoding: encoding that strings are encoded in
    :param data: data to be converted
    :param objs: order and objects that data conforms to
    :return: One object if *objs* contains one element, or tuple of objects if *objs* contains more than 1 element
    """
One object if *objs* contains one element, or tuple of objects if *objs* contains more than 1 element
One object if * objs * contains one element or tuple of objects if * objs * contains more than 1 element
data
bytes
data to be converted
data to be converted
objs
Any
order and objects that data conforms to
order and objects that data conforms to
encoding
str
encoding that strings are encoded in
encoding that strings are encoded in