$ pip install irholiday
to install from the latest source use following command
$ pip install git+git://github.com/hadi-gharibi/irholiday.git
that's all :D
from irholiday import irHoliday
# initialise the class
calendar = irHoliday()
# export data to dataframe
df = calendar.to_df(1388,1392)
# export data to csv
calendar.to_csv(1388,1392,'path/to/data')