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 -Ufor Windows orpython3 -m pip install convertio -Ufor 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)
Metadata
Release files for convertio 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| convertio-1.2.0.tar.gz | 18.6 kB | Without provenance | Details for convertio-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| convertio-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for convertio-1.2.0-py3-none-any.whl |
Total release size: 37.5 kB
Release files / convertio-1.2.0.tar.gz
| Download URL | convertio-1.2.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa6df3a7382f8664bc909ce2e5301d396e7075c7bba5e245bd464ebf4acaa7e0
|
|
BLAKE2b-256 checksum How to use checksums |
4a80f7544726c922a0e61553bbc62afeaa0b71c3d33926f336c96660e06572d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / convertio-1.2.0-py3-none-any.whl
| Download URL | convertio-1.2.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daaf4f5b92f357dfc353b2af0c22c69fcb143e6b19560591eebbe7627f6fae2e
|
|
BLAKE2b-256 checksum How to use checksums |
233bf52039f683478e5ec04ea140168be57cd696514498f0441cf9b9f37f289a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for convertio 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.