Is there a way to insert .py files onto LibreOffice?

Such as Raptor files and python? Something along the lines of what Microsoft Word can do

You can find information on this thread.

I’m not sure, but my read is the OP has somewhat complete different in mind…

@karolus, could be a starting point, if not please forgive me.