Nov 27, 2015

Python API Wrapper

We just pushed the official Python API Wrapper to Github. Using it you can do cool stuff with just a few lines of code:

import cloudconvert
 
api = cloudconvert.Api('your_api_key')
 
process = api.convert({
    'inputformat': 'html',
    'outputformat': 'pdf',
    'input': 'upload',
    'file': open('input.html', 'rb')
})
process.wait() 
process.download("output.pdf") 

As always, you can create ready to use code snippets using the API console.