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

# get\_attrs

Generates a dictionary of the [MaciDataObj's](/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*](/docs/maci/object.md)

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

In this example, we simply use the get\_attrs method on the [MaciDataObj](/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.
