The property of any public library shall be exempt from execution and shall be exempt from taxation to the extent it is used for a public purpose.