I want to create using python a large number of different Assemblies.
Is there a way to create those templates with Python Code?
The Python API gives the user the opportunity to create a single slot but not a template of slots like PinWheel, Block or Linear.
Those “templates” are just UI feature which generates a pattern of slots. You should be able to create any kind of pattern using the API, just can’t extend that user interface.
If you want to generate “pinwheel” patterns through the API, you will need to figure out and reimplement that pattern generation logic yourself.