Good timing — I actually just put together a sample plugin that does almost precisely what you’re asking for. I need to clean the code up a bit and write up a blog post about it. It’s a plugin for the SteelScript Application Framework, so relies on some of the functionality that the framework provides beyond what comes with just the core SteelScript — like Python Pandas and the existing Business Hours plugin already available there.
Give me a day or two and I’ll get something posted. Ping me if you want a preview and I’ll send over what I have right now that still has some rough edges.