> 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/maci/object/methods/get_attrs.md). Agents can also search and read this documentation through its [MCP server](https://docs.macilib.org/~gitbook/mcp).

# get\_attrs

get dict of attribute names and values

Generates a dictionary of the [MaciDataObj's](https://docs.macilib.org/docs/maci/object.md) current attribute names and values, and returns a dict. This method currently has no parameters.

Useful if it is desired to view or pull all current attribute names and values on the object.

{% hint style="info" %}
data.get\_attrs()  ->  dict\[str, Any]
{% endhint %}

\
*Basic Example of getting a dictionary of the current attribute names/values of the* [*MaciDataObj*](https://docs.macilib.org/docs/maci/object.md)

```python
dict_data = data.get_attrs()
```

In this example, we simply use the get\_attrs method on the [MaciDataObj](https://docs.macilib.org/docs/maci/object.md) to get a generated copy of the current attribute names and values, currently held inside the maci object, to receive a dictionary representing the attribute names as key names and their respective associated values, and assign the returned dict data to a variable.
