pyconfs/writers/toml.py
def as_toml(
    config: Dict[str, Any], pretty_print: bool = False, **toml_args: Any
) -> None:
    """Use toml library to write TOML file"""
    config_with_str_keys = _enforce_str_keys(config)

    if pretty_print:
        return Configuration.from_dict(config_with_str_keys).as_str(**toml_args)
    else:
        return toml.dumps(config_with_str_keys, **toml_args)
Use toml library to write TOML file
Use toml library to write TOML file
Use toml library to write TOML file
def as_toml(
    config: Dict[str, Any], pretty_print: bool = False, **toml_args: Any
) -> None:
    config_with_str_keys = _enforce_str_keys(config)
    if pretty_print:
        return Configuration.from_dict(config_with_str_keys).as_str(**toml_args)
    else:
        return toml.dumps(config_with_str_keys, **toml_args)
def as_toml ( config : Dict [ str , Any ] , pretty_print : bool = False , ** toml_args : Any ) -> None : config_with_str_keys = _enforce_str_keys ( config ) if pretty_print : return Configuration . from_dict ( config_with_str_keys ) . as_str ( ** toml_args ) else : return toml . dumps ( config_with_str_keys , ** toml_args )
Use toml library to write TOML file
Use toml library to write TOML file
"""Use toml library to write TOML file"""
config
Dict[str, Any]
pretty_print
bool
toml_args
Any