You can find excellent examples of codes for DSGE models as well as VAR on QuantEcon.
For example, here is an example of VAR model in Python, and here is an example of some simple DSGE model.
The above are just examples, you can find different models on the site that might suit you better.
In addition, you should note that in every case you will have to do some parametrization yourself. Very rarely you can just completely copy paste something that was done by someone else.
Even if someone else built VAR or DSGE for the specific country you are looking for there might be some special data challenges (e.g. structural breaks and so on) that you will have to deal on case by case basis.
Consequently, you should not expect to find code that you can reuse just as is, but generally QuantEcon has a lot of very good examples upon which you can build your model and which will save you a lot of time.