How to set up a domain automatically in Python

Hello
Wix.com in a system like how domains are set up sites?
I need help in Python

I do not understand your question. Can you be more detailed in what you are trying to do with Python?