During a course that I did about OpenSCAD, a student asked me if it was possible to use it to generate Braille. I answered that it would be possible, but I didn't have an example to show. Then I created my own.
This was created using OpenSCAD, which allows to generate Braille directly from Thingiverse, using Customizer. As OpenSCAD is a programming language, this can also be used as a library.
If you want to use it outside Thingiverse, either as library or for generating Braille in your desktop, please use the code available in GitHub: https://github.com/lucasoshiro/openscad-braille. The one in Thingiverse has a lot of workarounds that were needed due to the Customizer limitations.