object
maci data object
Last updated
maci data object
Last updated
The maci data object is a custom data type that provides unique functionality to perform useful operations on attribute names in the object and is responsible for holding all stored data during the runtime of the code.
Type name representation: MaciDataObj
To build a maci data object in code, you may run the simple build function (See ). This will return an empty maci object.
Example creating an empty maci data object using the
Whether loaded from a file (See ) or in code, you can create and set attribute names and assign data to them on the object in code like you normally would expect in python.
Example creating and setting attributes names in code with basic data
See and for loading data from a file
If the object is empty, it will show like so:
maci version 1.0.0
Compare maci objects to each other in code to check for equality. This will check if the data inside the object is exactly the same.
Example comparing maci objects
Call the bool built-in function on the object in code to check if the object is empty or not.
Example calling built-in bool function on maci object
Perform varying operations on the attribute names or data for the object using the built-in methods. You can set attribute names to be locked like a constant, or map attribute names to another like a pointer, get views of the object data and their states, and more.
maci version 1.0.0
Conveniently, you can access the MaciDataObj type to hint it in your code from the maci module.
Example accessing the MaciDataObj type for hinting
You may view the representation of the object by printing the object directly, or calling the or functions on the object. The resulting output will display all attribute names and their currently assigned values. Example output showing current attribute names and their respective data
See the object's api for all useful functionality
Typing for the MaciDataObj is currently supported if needed for type checkers. This is being currently tested using for type safety. Updates may be made in the future for uncaught scenarios that is not passing mypy or other type checkers.
See for more on this and other types