Position along curve Python


I am currently working on a book creator in Python. The user should be able to draw a curve and generate the books along the curve. Unfortunately can I not find a solution to snap the books to the spline. In Maya it’s done with two clicks (Modify -> Snap Align Objects -> Position along curve), but there is no direct way to do it with Python. Does anybody maybe have an idea how to position objects on a spline?
Thank you very much!


You will need to rebuild the curve to 0-1 parameter range to get even distribution of objects.

Here you can find my research in position objects along the curve.