Skip to main content

A command line tool to monitor and manage tron nodes.

Project description

TRON-CLI

 _________  ____  _  __    _______   ____
/_  __/ _ \/ __ \/ |/ /___/ ___/ /  /  _/
 / / / , _/ /_/ /    /___/ /__/ /___/ /  
/_/ /_/|_|\____/_/|_/    \___/____/___/

A command line tool, to quick set up, turn on/off (multiple) tron nodes(full/solidity), and monitor running status.

Install

pip

pip install troncli
dev version:
pip install -i https://test.pypi.org/simple/ troncli

Usage

Command Functions Example
tron-cli quick Quick start. tron-cli quick
tron-cli init --version Init dirs and fetch code. tron-cli init --version latest
tron-cli config --nettype --fullhttpport --solhttpport --fullgrpcport --solgrpcport Create and customize config files. tron-cli config --nettype 'private' --fullhttpport 8500 --solhttpport 8600 --fullgrpcport 50051 --solgrpcport 5001
tron-cli run --nodetype Run node. tron-cli run --nodetype full
tron-cli stop --pid Stop node. tron-cli stop --pid 7777
tron-cli -h, --help Check help manual. tron-cli -h
usage: cli.py [-h] {init,config,run,stop,quick} ...

which subcommand do you want?

optional arguments:
  -h, --help            show this help message and exit

subcommands:
  {init,config,run,stop,quick}
    init                Init dirs and fetch code. >> Settings: --version >>
    config              Customize config files. >> Settings: --nettype
                        --fullhttpport --solhttpport --fullgrpcport
                        --solgrpcport
    run                 Run nodes. >> Settings: --nodetype
    stop                Stop nodes. >> Settings: --pid
    quick               Quick start. (run a full private node by one command)
                        >> Example: tron-cli quick

Dev List

[X] init - set up file folders, and get builds based on given version number

[X] config - init basic config file in json format, and convert to java properties format and export

[X] run - run a single main net full node

[X] quick start

[X] run - move 'run' to its handler, and async the call

[X] stop - add sub cmd and its handler to stop all nodes (kill -15)

[X] run - change log and data store location

[X] config - add custom method to fire up private/shasta testnet

[X] config - add custom method to change port number

[X] config - add custom method to fire up solidity node

[X] run - add option to run solidity node

[X] pack to pip

[X] Doc - add more instruction in readme file

[ ] run - monitor running nodes

[ ] run - filter nodes

[ ] run - multiple (full) nodes

[ ] dump - fetch a dump

[ ] CLI UI imporve

[ ] init - add option to build from source code

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

troncli-0.0.7.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

troncli-0.0.7-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file troncli-0.0.7.tar.gz.

File metadata

  • Download URL: troncli-0.0.7.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for troncli-0.0.7.tar.gz
Algorithm Hash digest
SHA256 d462dc7d0a4bda34887e5f413a7c78bff8e4b261579b4dd847acfab96c409930
MD5 a6bceb6d9f84a45f2ffef674d2cc3bd4
BLAKE2b-256 1fbcdb7f42092609924c257c7f81e0ac14d254ca94e59513430233a6252b542e

See more details on using hashes here.

File details

Details for the file troncli-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: troncli-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for troncli-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 757506f347278bf6d77b772d7b9ab9b16ac3117968f36e3b5c21b471c4c38f18
MD5 54eac3fe7126b0282991c05b855fc91d
BLAKE2b-256 e779884ea24d8351a155f06aec4fee354f295ceadc9f8898fdb9552d602ec6f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page