Skip to main content

Client CLI for engaging with the Pantos system

Project description

Pantos logo

CI Quality Gate Status

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:

  1. Retrieve the balance of a token
  2. Retrieve the service node bids
  3. 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.

  1. 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.

  2. 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.

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

pantos_client_cli-1.1.2.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

pantos_client_cli-1.1.2-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file pantos_client_cli-1.1.2.tar.gz.

File metadata

  • Download URL: pantos_client_cli-1.1.2.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pantos_client_cli-1.1.2.tar.gz
Algorithm Hash digest
SHA256 7740a9f0a85a20eb8505c37297928492a59e4140a6d5f1f07df3687c9dc7ace4
MD5 f1fa567ddd48bcfae14acddc72bd7ba4
BLAKE2b-256 6d0ede679b1c0449e7406a728349af2031a30f9fd3c4f7ac9c0e96f778e7dcf7

See more details on using hashes here.

File details

Details for the file pantos_client_cli-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pantos_client_cli-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f344890e4ed9aea4299052efb5e1dcc3721fedfc4db6a99a3967560f022b2dd7
MD5 9d2284506871804f8ce674a66ef698c2
BLAKE2b-256 3e624b6f4316f57cfd5c52c34d23f5a10ba9a294422ea7ac1ce5298ef127bf8c

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