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
You can also download the most recent version of Vertopal-CLI binaries for MacOS, Windows, and Linux from the releases page or the product page.
Installer
An automatic installer is available for each different platform. It will run an install script that downloads and copy Vertopal-CLI binaries to the correct location.
Using macOS Terminal:
curl https://run.vertopal.com/cli/macos | bash
On Windows using PowerShell:
curl.exe https://run.vertopal.com/cli/windows | iex
Using Linux Terminal:
curl https://run.vertopal.com/cli/linux | bash
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
Built Distribution
File details
Details for the file vertopal-1.0.2.tar.gz
.
File metadata
- Download URL: vertopal-1.0.2.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3876e8d12b16a52d591064d40c4a6b12729b858ab0097406f5d5f4d754e7334 |
|
MD5 | d4d94b09d2c198178a43a07f4df7dca9 |
|
BLAKE2b-256 | 5bb1dd8c61aefd3309b0f834ef48d439f51ccd869ba4aa86144543b270115481 |
File details
Details for the file vertopal-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: vertopal-1.0.2-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee396c64ae52e2028ef5d77e9b200295bd11522c6924e15844b8ced0293b5068 |
|
MD5 | 4cc6159d6ba2f56108d3978036bb29d1 |
|
BLAKE2b-256 | 3341a81f37ea75b930a2341ff7d9853cf8e3dfca9e31a93b4b4e9a8e3161c9bd |