load attribute names and data

Loads data from a dict into the MaciDataObj in-place. Nothing is returned.

All key and value pairs in the top level of the dictionary will be loaded creating new attribute names, with their respective values retained, in the maci object based on the key names of the dict. If the key name is not a valid pythonic name convention, it will be skipped.

Basic Example of loading attribute names from dict using default positional parameter

data.load_attrs({'attr1': 1, 'attr2': 2, 'attr3': 3})

In this example, we simply load attribute names and their values into the MaciDataObj using the load_attrs method and pass a dictionary representing the names/values we want to load in the object as an argument to the method. This is done in-place on the object.

Access the data by their individual and respective attribute names like you normally would on an object in python.

Example accessing and viewing the data


parameters & arguments

Describes all parameter functionality and accepted data types

data: dict[str, Any]

First and only required positional argument. Accepts dictionaries

Use this parameter to pass in a dictionary to load your attribute names and values into the maci object

Last updated