API

import requests # pip install requests

url = 'https://api.readme42.com/templates/username/template'
headers = {"Authorization": "Bearer YOUR_TOKEN"}
data = {'section1':'...','section2':'...','var1':'...','var2':'...'}

r = requests.post(url,headers=headers, data=data)
open('README.md','w').write(r.text)