Pantos Client CLI
1. Introduction
1.1 Overview
Welcome to the documentation for Pantos Client CLI, a powerful tool for engaging with the Pantos system. This documentation aims to provide developers with comprehensive information on how to use the features the CLI offers.
1.2 Features
The Pantos Client CLI offers the following functionalities:
- Retrieve the balance of a token
- Retrieve the service node bids
- Transfer tokens
2. Installation
2.1 Prerequisites
Please make sure that your environment meets the following requirements:
Keystore File (Wallet)
The CLI requires a private key encrypted with a password.
Since, for the moment, the Pantos protocol supports only EVM blockchains, only an Ethereum account keystore file is sufficient. It can be created with tools such as https://vanity-eth.tk/.
One of the most significant advantages of using Pantos is that the protocol has been designed to require minimal user friction when cross-chain operations are performed. Therefore, when using the Pantos products, you must top up your wallet only with PAN tokens.
Python Version
The Pantos Client CLI supports Python 3.10 or higher. Ensure that you have the correct Python version installed before the installation steps. You can download the latest version of Python from the official Python website.
Library Versions
The Pantos Client CLI has been tested with the library versions specified in poetry.lock.
Poetry
Poetry is our tool of choice for dependency management and packaging.
Installing: https://python-poetry.org/docs/#installing-with-the-official-installer or https://python-poetry.org/docs/#installing-with-pipx
By default poetry creates the venv directory under under {cache-dir}/virtualenvs. If you opt for creating the virtualenv inside the project’s root directory, execute the following command:
poetry config virtualenvs.in-project true
2.2 Installation Steps
Clone the repository
Clone the repository to your local machine:
$ git clone https://github.com/pantos-io/client-cli.git
$ cd client-cli
$ virtualenv env
$ source env/bin/activate
$ pip install poetry
Libraries
Create the virtual environment and install the dependencies:
$ poetry install --no-root
3. Usage
3.1 Configuration
The CLI comes with two configurations.
-
A configuration for the Pantos Client Library can be found in client-library.yml. The library already has a set configuration for our testnet environment, but feel free to adapt it to your needs.
-
A configuration for the Pantos Client CLI can be found in client-cli.yml. Make sure to replace the keystore file path and the password with your private keystore.
3.2 Examples
The Pantos Client CLI can be used by executing the pantos-client.sh bash script.
$ pantos-client [-h] {balance,bids,transfer} ...
positional arguments:
{balance,bids,transfer}
balance show the balance of your accounts
bids list the available service node bids
transfer transfer tokens to another account (possibly on another blockchain)
4. Contributing
Check the code of conduct.
Metadata
Release files for pantos-client-cli 1.1.2
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 |
|---|---|---|---|---|
| pantos_client_cli-1.1.2.tar.gz | 24.4 kB | Without provenance | Details for pantos_client_cli-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pantos_client_cli-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for pantos_client_cli-1.1.2-py3-none-any.whl |
Total release size: 50.8 kB
Release files / pantos_client_cli-1.1.2.tar.gz
| Download URL | pantos_client_cli-1.1.2.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7740a9f0a85a20eb8505c37297928492a59e4140a6d5f1f07df3687c9dc7ace4
|
|
BLAKE2b-256 checksum How to use checksums |
6d0ede679b1c0449e7406a728349af2031a30f9fd3c4f7ac9c0e96f778e7dcf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / pantos_client_cli-1.1.2-py3-none-any.whl
| Download URL | pantos_client_cli-1.1.2-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f344890e4ed9aea4299052efb5e1dcc3721fedfc4db6a99a3967560f022b2dd7
|
|
BLAKE2b-256 checksum How to use checksums |
3e624b6f4316f57cfd5c52c34d23f5a10ba9a294422ea7ac1ce5298ef127bf8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for pantos-client-cli 1.1.2
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.