Metadata-Version: 2.1
Name: troncli
Version: 0.1.3
Summary: A command line tool to monitor and manage tron nodes.
Home-page: https://github.com/tronprotocol/tron-cli
Author: Weiyu X
Author-email: weiyu@tron.network
License: UNKNOWN
Description: # TRON-CLI
        ```
         _________  ____  _  __    _______   ____
        /_  __/ _ \/ __ \/ |/ /___/ ___/ /  /  _/
         / / / , _/ /_/ /    /___/ /__/ /___/ /  
        /_/ /_/|_|\____/_/|_/    \___/____/___/
        ```
        
        A command line tool, to quick set up, turn on/off (multiple) tron nodes(full/solidity), and monitor running status.
        
        * Learn more about tron on [TRON Developer Hub](https://developers.tron.network/docs/full-node)
        
        * Join the community on [TRON Discord](https://discord.gg/GsRgsTD)
        
        * Source code on [Github](https://github.com/tronprotocol/tron-cli)
        
        * Project on [Pypi](https://pypi.org/project/troncli/)
        
        ## Install
        
        ### pip
        
        > pip install --upgrade pip
        
        ```
        pip install troncli
        ```
        
        #### FAQs on installation
        
        1. How to fix "fail to build a wheel for psutil" error?
        
            a. please check if you installed clang correctly, or install it using homebrew:
        
            ```
            brew install --with-toolchain llvm
            ```
        
            b. please check if you are using python 3.x
        
        2. How to test in virtual environment?
            
            a. create virtual environment
        
            ```
            python3 -m venv venv
            ```
        
            b. activate venv
        
            ```
            . ./venv/bin/activate
            ```
        
            c. install troncli in venv
        
            ```
            pip install troncli
            ```
        
            d. when done testing, or using the venv - to deactivate venv
        
            ```
            deactivate
            ```
        
        ## Usage
        
        | Command                                                                              | Functions                          | Example1                                                                                                         | Example2                                                                                                      |
        |--------------------------------------------------------------------------------------|------------------------------------|------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
        | tron-cli init --version                                                              | Init dirs and fetch code.          | tron-cli init --version latest                                                                                   | tron-cli init --version 3.1.3                                                                                 |
        | 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 config --nettype main --fullhttpport 8500 --solhttpport 8600 --fullgrpcport 50051 --solgrpcport 5001 |
        | tron-cli run --nodetype                                                              | Run node.                          | tron-cli run --nodetype full                                                                                     | tron-cli run --nodetype sol                                                                                   |
        | tron-cli stop --pid                                                                  | Stop node.                         | tron-cli stop --pid 7777                                                                                         | tron-cli stop --pid 7777                                                                                      |
        | tron-cli status --node                                                               | Monitor nodes status.              | tron-cli status --node all                                                                                       | tron-cli status --node 777                                                                                    |
        | tron-cli quick                                                                       | Quick start.                       | tron-cli quick                                                                                                   | tron-cli quick                                                                                                |
        | tron-cli -h, --help                                                                  | Check help manual.                 | tron-cli -h                                                                                                      | tron-cli --help                                                                                               |
        
        
        ```
        usage: tron-cli [-h] {init,config,run,stop,status,quick} ...
        
        which subcommand do you want?
        
        optional arguments:
          -h, --help            show this help message and exit
        
        subcommands:
          {init,config,run,stop,status,quick}
            init                Init dirs and fetch code. >> Parameter(s): --version
            config              Create customize config files. >> Parameter(s):
                                --nettype --fullhttpport --solhttpport --fullgrpcport
                                --solgrpcport
            run                 Run node. >> Parameter(s): --nodetype
            stop                Stop node. >> Parameter(s): --pid
            status              Monitor nodes status. >> Parameter(s): --node
            quick               Quick start. (run a full private node by one command)
                                >> Example: tron-cli quick
        ```
        
        
        # Changelog
        
        ### In doing
        
        [ ] run - filter nodes
        
        [ ] dump - fetch a dump
        
        [ ] init - add option to build from source code
        
        #### Version 0.1.3
        
        [X] run - check single ps status
        
        [X] keep track of all running nodes
        
        [ ] run - monitor over all system status
        
        [ ] run - multiple (full) nodes
        
        #### Version 0.1.2
        
        [X] catch download errors
        
        [X] add progress bar for download
        
        [X] colorful logo and msg
        
        [X] add more progress msg on ports config
        
        [X] add more progress msg on net_type config
        
        [X] add info msg type for instructions
        
        [X] move changelog to file
        
        [X] optimize progress bar
        
        #### Version 0.1.0
        
        [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
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Description-Content-Type: text/markdown
