> For the complete documentation index, see [llms.txt](https://docs.macilib.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.macilib.org/docs/toml/functions/maci.tomlloadstr.md).

# maci.tomlloadstr

### loading a string

Loads toml string data, and returns a dictionary.

{% hint style="info" %}
maci.tomlloadstr  ->  dict\[str, Any]
{% endhint %}

*Basic Example of loading a toml string using default positional parameter*

```python
data = maci.tomlloadstr('key1 = "value1" \nkey2 = "value2"')
```

In this example, we simply load toml data from a string using the tomlloadstr function and pass a string as an argument to the function to load the toml data, and assign the returned data to a variable.&#x20;

### parameters & arguments

Describes all parameter functionality and accepted data types

<details>

<summary>toml_str_data:  str</summary>

First and only required positional argument. Accepts strings

Use this parameter to pass in your toml formatted string data

</details>

*This function uses the tomli library installed as a dependency from pypi for its underlying functionality. For more information on tomli, visit:* [*https://pypi.org/project/tomli/*](https://pypi.org/project/tomli/)
