An API wrapper for convertio.co. Before starting, make sure you've got an API key. The full API reference can be found on convertio.co/api/docs, but I'll make a documentation for this package soon.
- Sign-up to developers.convertio.co.
- Get your free API key from the homepage
- Install this module : run
python -m pip install convertio -U
for Windows orpython3 -m pip install convertio -U
for Linux and Macos. You can also download it from githubpip install git+https://github.com/PetitPotiron/python-convertio.git
import convertio
import time
client = convertio.Client(token="INSERT_YOUR_TOKEN_HERE")
conversion_id = client.convert_by_filename('source.txt', 'pdf')
while client.check_conversion(conversion_id).step != 'finish':
time.sleep(1)
client.download(conversion_id, 'result.pdf')
client.delete(conversion_id)
Version 1.2.0
This module is neither created nor managed by convertio.co. It represents services faithful to the API and documentation from their website. This API is not unofficial, and it can be payable if you exceed a certain usage. Notice that you must respect convertio.co's terms of use.
- Get an API key
- API pricing
- API reference
- OCR (options) pricing
- Conversion types
- GitHub
- PHP module by convertio.co
- CLI for convertio.co, by themselves
- Fixed error when trying to upload a file of a different format than .txt. It used to be impossible. Added usage example
- Fix issue #1 (typing does not work on 3.8 and lower)