https://github.com/regulus79/objtonodebox/blob/main/convert.py, seems nice to have IMO. This is mentioned in https://docs.luanti.org/for-creators/models/using-blockbench/#nodeboxes.