The spiro package creates spirographs in the .svg file format. There are functions in spiro that transform and animate your spirographs after they have been created.
You can install spiro from github with:
Here is a basic spirograph.
fixed_radius = 11,
cycling_radius = 4,
pen_radius = 9,
file = "example.svg")
Please note that the spiro project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.