Skip to main content

An API wrapper for convertio.co

Project description

convertio

Convertio version on pypi Discord support server

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.

Get started

  • 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 or python3 -m pip install convertio -U for Linux and Macos. You can also download it from github pip install git+https://github.com/PetitPotiron/python-convertio.git

Quick start

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)

Notes

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.

Links

Changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

convertio-1.2.0.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

convertio-1.2.0-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page