box/box_list.py
def to_toml(
            self,
            filename: Union[str, PathLike] = None,
            key_name: str = "toml",
            encoding: str = "utf-8",
            errors: str = "strict",
        ):
            """
            Transform the BoxList object into a toml string.

            :param filename: File to write toml object too
            :param key_name: Specify the name of the key to store the string under
                (cannot directly convert to toml)
            :param encoding: File encoding
            :param errors: How to handle encoding errors
            :return: string of TOML (if no filename provided)
            """
            return _to_toml({key_name: self.to_list()}, filename=filename, encoding=encoding, errors=errors)

            Transform the BoxList object into a toml string.

            :param filename: File to write toml object too
            :param key_name: Specify the name of the key to store the string under
                (cannot directly convert to toml)
            :param encoding: File encoding
            :param errors: How to handle encoding errors
            :return: string of TOML (if no filename provided)
            
Transform the BoxList object into a toml string.
Transform the BoxList object into a toml string .
def to_toml(
            self,
            filename: Union[str, PathLike] = None,
            key_name: str = "toml",
            encoding: str = "utf-8",
            errors: str = "strict",
        ):
            return _to_toml({key_name: self.to_list()}, filename=filename, encoding=encoding, errors=errors)
def to_toml ( self , filename : Union [ str , PathLike ] = None , key_name : str = "toml" , encoding : str = "utf-8" , errors : str = "strict" , ) : return _to_toml ( { key_name : self . to_list ( ) } , filename = filename , encoding = encoding , errors = errors )
Transform the BoxList object into a toml string.
Transform the BoxList object into a toml string .
"""
            Transform the BoxList object into a toml string.

            :param filename: File to write toml object too
            :param key_name: Specify the name of the key to store the string under
                (cannot directly convert to toml)
            :param encoding: File encoding
            :param errors: How to handle encoding errors
            :return: string of TOML (if no filename provided)
            """
string of TOML (if no filename provided)
string of TOML ( if no filename provided )
self
filename
Union[str, PathLike]
File to write toml object too
File to write toml object too
key_name
str
Specify the name of the key to store the string under
(cannot directly convert to toml)
Specify the name of the key to store the string under ( cannot directly convert to toml )
encoding
str
None
errors
str
None