maci.dumpstr
dumps maci, dict, or object data to a string
Last updated
dumps maci, dict, or object data to a string
Last updated
Dumps maci, dict, or custom object data to a string. The returned string is a structured format following the maci language syntax (See ).
Basic Example of dumping data to a string using default positional parameter
In this example, we simply dump data to a string using the dump function and pass the data as an argument to the function, and assign the returned data to a variable.
Example of dumping
Example of dumping dict
Example of dumping custom object
Resulted output contents in example string from all object dumps
Describes all parameter functionality and accepted data types
Use this parameter to enable writing data that contain strings to be written as a representation. This will represent your string like a python triple-quoted string in the output over multiple lines. This mechanic works by delimiting each new line of the string data when it detects a newline character.
Default is disabled as it would be more desirable for a developer to have string data in its original representation as this feature does add 1 leading and 1 trailing newline character to the string (See ), but does not tamper with the data in-between. However, you can enable this feature if you desire a more human-readable multiline string for your string data in the output. Loading the string with the function for example will not strip the leading and trailing newline characters for the reason of preserving the original string data in case it was intentionally written that way.
This is a global switch that affects initialized and class (if ) attributes.
This is a global switch that affects initialized and class (if ) attributes.
This is a global switch that affects initialized and class (if ) attributes.
Use this parameter to also dump all private initialized attribute names that begin with a single or double underscore. Default is disabled to protect private or name-mangled attributes. Note: Using this is only necessary if you have parameter enabled and want to only dump private or name-mangled initialized attributes and not private class attributes.
Use this parameter to also dump all private initialized attribute names that begin with a single underscore. Default is disabled to protect private attributes. Note: Using this is only necessary if you have parameter enabled and want to only dump private initialized attributes and not private class attributes.
Use this parameter to also dump all private initialized attribute names that begin with a double underscore. Default is disabled to protect private/name-mangled attributes. Note: Using this is only necessary if you have parameter enabled and want to only dump private/name-mangled initialized attributes and not private class attributes.
Use this parameter to also dump all private class attribute names that begin with a single or double underscore. Default is disabled to protect private or name-mangled attributes. Note: Using this is only necessary if you have parameter enabled and want to only dump private or name-mangled class attributes and not private initialized attributes.
Use this parameter to also dump all private class attribute names that begin with a single underscore. Default is disabled to protect private attributes. Note: Using this is only necessary if you have parameter enabled and want to only dump private class attributes and not private initialized attributes.
Use this parameter to also dump all private class attribute names that begin with a double underscore. Default is disabled to protect private/name-mangled attributes. Note: Using this is only necessary if you have parameter enabled and want to only dump private/name-mangled class attributes and not private initialized attributes.
Use this parameter to enable writing the as symbols instead of their default syntax. Default is disabled as this feature may not be supported in the future and is discouraged from using in general. It was only implemented as a courtesy to provide ported support (See ), but it is instead encouraged to use the main maci supported glyphs from the glyph legend.