pymzn.dzn2dict¶
-
pymzn.
dzn2dict
(dzn, *, rebase_arrays=True)¶ Evaluates a dzn string or file into a Python dictionary of variable assignments.
Parameters: - dzn (str) – A dzn content string or a path to a dzn file.
- rebase_arrays (bool) – Whether to return arrays as zero-based lists or to return them as dictionaries, preserving the original index-sets.
Returns: A dictionary containing the variable assignments evaluated from the input file or string.
Return type: dict