How to trigger packaging a project from BP/Python automatically?

Does anyone have an answer to this? Also looking for any tips that could point in the right way, can’t find anything about it on the API Docs.