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.1.1
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
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.1.1.tar.gz
(17.8 kB
view hashes)
Built Distribution
convertio-1.1.1-py3-none-any.whl
(18.9 kB
view hashes)
Close
Hashes for convertio-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 933f6a189d6785402ca0ca5c483d4e111fa118660422afed10eca69e5600c77f |
|
MD5 | cd6e271b41b89644c68325e24dc6cea5 |
|
BLAKE2b-256 | fe4c502234acfda7f0782e59382585aefe2036d56446c4cfbae3927b9ccd83bc |