Overview
This Python package wraps the Dynare.jl Julia package, which provides a Julia interface to the Dynare software for economic modeling.
The package provides a dynare(model_path: Path)
function which takes a path to a Dynare model file and returns a Context
Python object, which is a Python equivalent of the Dynare.Context
Julia object.
Julia AxisArrayGrid
objects are converted to Pandas DataFrame
objects, and Julia Matrix
objects are converted to NumPy ndarray
objects.
Under the hood, the project uses the JuliaCall library to call Julia code from Python and convert Julia objects to Python objects.
Installation
The package can be currently installed from the GitLab repository:
pip install git+https://git.dynare.org/Dynare/dynare-python.git
Example
For an example on how to use the package, see test/test_dynare.py
.
Simple example
from dynare import dynare
context = dynare("<path_to_model_file.mod>")
print(context)