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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file convertio-1.2.0.tar.gz.

File metadata

  • Download URL: convertio-1.2.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for convertio-1.2.0.tar.gz
Algorithm Hash digest
SHA256 aa6df3a7382f8664bc909ce2e5301d396e7075c7bba5e245bd464ebf4acaa7e0
MD5 e04420029084c0a8ce35008a663d7158
BLAKE2b-256 4a80f7544726c922a0e61553bbc62afeaa0b71c3d33926f336c96660e06572d6

See more details on using hashes here.

File details

Details for the file convertio-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: convertio-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for convertio-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daaf4f5b92f357dfc353b2af0c22c69fcb143e6b19560591eebbe7627f6fae2e
MD5 0ae7b8b97dcb1867221d7d380975a59f
BLAKE2b-256 233bf52039f683478e5ec04ea140168be57cd696514498f0441cf9b9f37f289a

See more details on using hashes here.

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