Skip to main content

Convert your files in terminal using Vertopal API

Project description

Vertopal-CLI

Vertopal-CLI is a small, yet powerful utility for converting digital files to a variety of file formats using Vertopal public API.

You can use Vertopal-CLI by either terminal commands or importing as Python package.

Installing Vertopal-CLI

Vertopal-CLI is available on PyPI:

$ python -m pip install vertopal

Using Vertopal-CLI

To use Vertopal-CLI you need to obtain an App-ID and a Security Token.

Converting files using terminal commands are very simple:

$ vertopal convert document.ipynb --to pdf

To view full command-line help, execute vertopal --help and vertopal convert --help in terminal.

Setting App ID and Security Token

Before executing vertopal convert commands in terminal, you need to set your obtained App-ID and Security Token in global configuration file:

$ vertopal config --app "your-app-id" --token "your-security-token"

Importing as Python package

Importing vertopal as a Python package gives you more control and flexibility over each individual task:

>>> import vertopal
>>> response = vertopal.API.upload(
...     filename="document.pdf",
...     filepath="/home/vertopal/document.ipynb",
...     app="your-app-id",
...     token="your-security-token",
... )
>>> response
<Response [200]>
>>> json_response = response.json()
>>> json_response["result"]["output"]["connector"]
'the-connector-of-the-upload-task'

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

vertopal-1.0.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

vertopal-1.0.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file vertopal-1.0.0.tar.gz.

File metadata

  • Download URL: vertopal-1.0.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for vertopal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4f5288124d75cb43f6d9b02aae6ed1e0e468759806e7aaa123188f0db652474d
MD5 299a5a6c5bcebc6a8956b02203dd7980
BLAKE2b-256 25996bd50c63e9c94a66cf4a12e6e63cf2e9fea88b84019ff5ab6a638de8b3af

See more details on using hashes here.

File details

Details for the file vertopal-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vertopal-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for vertopal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 970935bbed2f7199b6554ac42626242ca8cdaedba78e54c725ee23c25eb0c25b
MD5 b7e1a048f51180c94dae208e492a9cca
BLAKE2b-256 d03d182792857ad73d60a29e78c68c2bcc86b4b900dc18438ab259b5c12ab320

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