There isn't an out of the box solution to do that. What you can do is either:
Using the API, make your own shape that is a spiral following a curved line. As a reference, you can take a look at the implementation of the Spiral shape (which follows a straight line), which is the CSShape class. This and this might be helpful.
Using the API, make a Curvy Generator module which rolls a spline around another one. I attached an example, a scene that uses a modified version of ModifierTRSPath, that makes an extruded straight mesh roll around it center. This is just for reference since it is not production ready code at all.
I hope this helped. Have a nice day.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance workâfeel free to reach out.