It's not unusual for local libraries in Denmark to be accessible to outside office hours using a library card.
Usually, not at night -- but why close a local library in the evening.
Just require library cards and add video surveillance.
(you milage may vary)