Simple run python with service

Hi,
Simply how can I run a python application as a service. I am using home assistant os