import snowday
prediction = snowday.predict('12345', 0, snowday.SchoolType.PUBLIC)
print(f'There is a {prediction.chance_tmrw()}% chance of a snow day tomorrow.')Returns a Prediction object
-
Prediction.chance(day: datetime.datetime)Return the % chance of a snow day on the specified day represented as a
datetimeobject orNoneif no prediction was listed for that day -
Prediction.chance_today()Returns the chance of a snow day for today, or
Noneif not found -
Prediction.chance_tmrw()Returns the chance of a snow day for tomorrow, or
Noneif not found
Constants describing the type of school
SchoolType.PUBLICSchoolType.URBAN_PUBLICSchoolType.RURAL_PUBLICSchoolType.PRIVATESchoolType.BOARDING
Awesome! Thanks for this.