piwebasync/api/util.py
def serialize_multi_instance(
    key: str,
    params: Union[
        List[ConvertsToStr],
        Tuple[ConvertsToStr]
    ]
) -> str:
    """
    Serializes Pi Web API parameters that can be specified multiple times
    such as 'webId' for StreamSetAdHoc controller
    """
    assert isinstance(params, (list, tuple))
    serialized: Union[List[str], Tuple[str]] = serialize_to_str(params)
    if len(serialized) > 1:
        return f"{serialized.pop(0)}&{key}=" + f"&{key}=".join(serialized)
    else:
        return f"{serialized.pop(0)}"

    Serializes Pi Web API parameters that can be specified multiple times
    such as 'webId' for StreamSetAdHoc controller
    
Serializes Pi Web API parameters that can be specified multiple times
such as 'webId' for StreamSetAdHoc controller
Serializes Pi Web API parameters that can be specified multiple times such as ' webId ' for StreamSetAdHoc controller
def serialize_multi_instance(
    key: str,
    params: Union[
        List[ConvertsToStr],
        Tuple[ConvertsToStr]
    ]
) -> str:
    assert isinstance(params, (list, tuple))
    serialized: Union[List[str], Tuple[str]] = serialize_to_str(params)
    if len(serialized) > 1:
        return f"{serialized.pop(0)}&{key}=" + f"&{key}=".join(serialized)
    else:
        return f"{serialized.pop(0)}"
def serialize_multi_instance ( key : str , params : Union [ List [ ConvertsToStr ] , Tuple [ ConvertsToStr ] ] ) -> str : assert isinstance ( params , ( list , tuple ) ) serialized : Union [ List [ str ] , Tuple [ str ] ] = serialize_to_str ( params ) if len ( serialized ) > 1 : return f"{serialized.pop(0)}&{key}=" + f"&{key}=" . join ( serialized ) else : return f"{serialized.pop(0)}"
Serializes Pi Web API parameters that can be specified multiple times
such as 'webId' for StreamSetAdHoc controller
Serializes Pi Web API parameters that can be specified multiple times such as ' webId ' for StreamSetAdHoc controller
"""
    Serializes Pi Web API parameters that can be specified multiple times
    such as 'webId' for StreamSetAdHoc controller
    """
key
str
params
Union[
        List[ConvertsToStr],
        Tuple[ConvertsToStr]
    ]