# maci.tomlload

### loading a file

Loads toml file data, and returns a dictionary.

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

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

```python
data = maci.tomlload('mydata.toml')
```

In this example, we simply load toml data from a file using the tomlload function and pass a string of the filepath to the file as an argument to the function to load the toml data, and assign the returned data to a variable.

### parameters & arguments

Describes all parameter functionality and accepted data types

<details>

<summary>filename:  str | Path</summary>

First and only required positional argument. Accepts strings and [Path objects](https://docs.python.org/3/library/pathlib.html)

Use this parameter to point to your filepath

</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/)
