An API wrapper for convertio.co
Project description
convertio
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 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
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
- 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
Changelog
- 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)
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)
Built Distribution
convertio-1.2.0-py3-none-any.whl
(18.9 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6df3a7382f8664bc909ce2e5301d396e7075c7bba5e245bd464ebf4acaa7e0 |
|
MD5 | e04420029084c0a8ce35008a663d7158 |
|
BLAKE2b-256 | 4a80f7544726c922a0e61553bbc62afeaa0b71c3d33926f336c96660e06572d6 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | daaf4f5b92f357dfc353b2af0c22c69fcb143e6b19560591eebbe7627f6fae2e |
|
MD5 | 0ae7b8b97dcb1867221d7d380975a59f |
|
BLAKE2b-256 | 233bf52039f683478e5ec04ea140168be57cd696514498f0441cf9b9f37f289a |