Postscript is really easy to generate from shell scripts; I wrote a little thing that did labels for our (physical books) library.
Not sure what I'd use for alternative. I'm sure there are many little modules that would help. Or I could just install Postscript. But it's nice to have things with fewer dependencies.