tronpytool


Nametronpytool JSON
Version 3.6.82 PyPI version JSON
download
home_pagehttps://github.com/tokenchain/tronpytool
SummaryA Python API for interacting with Tron networks
upload_time2023-04-04 16:47:27
maintainer
docs_urlNone
authorSederov & Heskemo & Morgan
requires_python>=3.6,<4
licenseMIT License
keywords tron tron-api tron-api-python cli sdk pentest
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            ======================================
TRON API for Python The only Library
======================================

A Python API for interacting with the Tron (TRX)

.. image:: https://img.shields.io/pypi/v/tronpytool.svg
    :target: https://pypi.python.org/pypi/tronpytool

.. image:: https://img.shields.io/pypi/pyversions/tronpytool.svg
    :target: https://pypi.python.org/pypi/tronpytool

.. image:: https://api.travis-ci.com/iexbase/tron-api-python.svg?branch=master
    :target: https://travis-ci.com/iexbase/tron-api-python
    
.. image:: https://img.shields.io/github/issues/iexbase/tron-api-python.svg
    :target: https://github.com/iexbase/tron-api-python/issues
    
.. image:: https://img.shields.io/github/issues-pr/iexbase/tron-api-python.svg
    :target: https://github.com/iexbase/tron-api-python/pulls

------------

**A Command-Line Interface framework**

You can install it in a system-wide location via pip:

.. code-block:: bash

    sudo pip3 install tronpytool

Or install it locally using `virtualenv <https://github.com/pypa/virtualenv>`__:

.. code-block:: bash

    virtualenv -p /usr/bin/python3 ~/tronpytool
    source ~/tronpytool/bin/activate
    pip3 install tronpytool

------------

Usage
=====
Specify the API endpoints:

Smart Contract
--------------

.. code-block:: python

    from tronpytool import HttpProvider
    from tronpytool import Tron

    full_node = HttpProvider('https://api.trongrid.io')
    solidity_node = HttpProvider('https://api.trongrid.io')
    event_server = HttpProvider('https://api.trongrid.io')

    # option 1
    tron = Tron(full_node=full_node,
                solidity_node=solidity_node,
                event_server=event_server)

    # option 2
    tron_v2 = Tron()

    # option 3
    tron_v3 = Tron(
        default_address='TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY',
        private_key='...'
    )

    # option 4
    tron_v4 = Tron().setNetwork('nile')





Code compile
------------

Integration of forge that can work perfectly with latest version with ONE LINE code.

.. code-block:: python

    # !/usr/bin/env python
    # coding: utf-8
    import os

    from tronpytool import TronBrew, Evm

    solidity_files = [
        "vault/token/RaceToken.sol",
    ]

    ROOT = '.../Documents/b95/devtron'
    FACTORY = '$HOME/Documents/piplines/factoryabi'

    print("-----> job from here")
    print(ROOT)
    print("-----> now its ready to go")

    TronBrew(ROOT, FACTORY).setClassSolNames(solidity_files).setEvm(Evm.ISTANBUL).useForge().localTranspile()




Documentation
=============
Read the library manual by the `manual <docs/tronpytool/index.html>`__
Documentation is available at `docs <https://tronpytool-for-python.readthedocs.io/en/latest/>`__.


Donations
=============

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tokenchain/tronpytool",
    "name": "tronpytool",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4",
    "maintainer_email": "",
    "keywords": "tron tron-api tron-api-python cli sdk pentest",
    "author": "Sederov & Heskemo & Morgan",
    "author_email": "steein.shamsudin@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d1/35/c0250f36b7eb394b7b58076ce74d5342f2f8e0d9b61cdca6ab156f938354/tronpytool-3.6.82.tar.gz",
    "platform": null,
    "description": "======================================\nTRON API for Python The only Library\n======================================\n\nA Python API for interacting with the Tron (TRX)\n\n.. image:: https://img.shields.io/pypi/v/tronpytool.svg\n    :target: https://pypi.python.org/pypi/tronpytool\n\n.. image:: https://img.shields.io/pypi/pyversions/tronpytool.svg\n    :target: https://pypi.python.org/pypi/tronpytool\n\n.. image:: https://api.travis-ci.com/iexbase/tron-api-python.svg?branch=master\n    :target: https://travis-ci.com/iexbase/tron-api-python\n    \n.. image:: https://img.shields.io/github/issues/iexbase/tron-api-python.svg\n    :target: https://github.com/iexbase/tron-api-python/issues\n    \n.. image:: https://img.shields.io/github/issues-pr/iexbase/tron-api-python.svg\n    :target: https://github.com/iexbase/tron-api-python/pulls\n\n------------\n\n**A Command-Line Interface framework**\n\nYou can install it in a system-wide location via pip:\n\n.. code-block:: bash\n\n    sudo pip3 install tronpytool\n\nOr install it locally using `virtualenv <https://github.com/pypa/virtualenv>`__:\n\n.. code-block:: bash\n\n    virtualenv -p /usr/bin/python3 ~/tronpytool\n    source ~/tronpytool/bin/activate\n    pip3 install tronpytool\n\n------------\n\nUsage\n=====\nSpecify the API endpoints:\n\nSmart Contract\n--------------\n\n.. code-block:: python\n\n    from tronpytool import HttpProvider\n    from tronpytool import Tron\n\n    full_node = HttpProvider('https://api.trongrid.io')\n    solidity_node = HttpProvider('https://api.trongrid.io')\n    event_server = HttpProvider('https://api.trongrid.io')\n\n    # option 1\n    tron = Tron(full_node=full_node,\n                solidity_node=solidity_node,\n                event_server=event_server)\n\n    # option 2\n    tron_v2 = Tron()\n\n    # option 3\n    tron_v3 = Tron(\n        default_address='TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY',\n        private_key='...'\n    )\n\n    # option 4\n    tron_v4 = Tron().setNetwork('nile')\n\n\n\n\n\nCode compile\n------------\n\nIntegration of forge that can work perfectly with latest version with ONE LINE code.\n\n.. code-block:: python\n\n    # !/usr/bin/env python\n    # coding: utf-8\n    import os\n\n    from tronpytool import TronBrew, Evm\n\n    solidity_files = [\n        \"vault/token/RaceToken.sol\",\n    ]\n\n    ROOT = '.../Documents/b95/devtron'\n    FACTORY = '$HOME/Documents/piplines/factoryabi'\n\n    print(\"-----> job from here\")\n    print(ROOT)\n    print(\"-----> now its ready to go\")\n\n    TronBrew(ROOT, FACTORY).setClassSolNames(solidity_files).setEvm(Evm.ISTANBUL).useForge().localTranspile()\n\n\n\n\nDocumentation\n=============\nRead the library manual by the `manual <docs/tronpytool/index.html>`__\nDocumentation is available at `docs <https://tronpytool-for-python.readthedocs.io/en/latest/>`__.\n\n\nDonations\n=============\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A Python API for interacting with Tron networks",
    "version": "3.6.82",
    "split_keywords": [
        "tron",
        "tron-api",
        "tron-api-python",
        "cli",
        "sdk",
        "pentest"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7f819f72329c657e633d04b702a5ba1d9d440712f032af35c57ecb68a705a8d0",
                "md5": "2d7857bea07113ad4ada09a707575fc8",
                "sha256": "683218ff0a90dae0ee50a5a157dafa1220d3d4927b1e8dffdd27f3096d721616"
            },
            "downloads": -1,
            "filename": "tronpytool-3.6.82-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d7857bea07113ad4ada09a707575fc8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4",
            "size": 99427,
            "upload_time": "2023-04-04T16:47:24",
            "upload_time_iso_8601": "2023-04-04T16:47:24.687073Z",
            "url": "https://files.pythonhosted.org/packages/7f/81/9f72329c657e633d04b702a5ba1d9d440712f032af35c57ecb68a705a8d0/tronpytool-3.6.82-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d135c0250f36b7eb394b7b58076ce74d5342f2f8e0d9b61cdca6ab156f938354",
                "md5": "0a79d8c3a219a483fb90d499ae876723",
                "sha256": "d92054e9d853d3619545fe9f96580a1144d32d65ccde6255e591531a200912b5"
            },
            "downloads": -1,
            "filename": "tronpytool-3.6.82.tar.gz",
            "has_sig": false,
            "md5_digest": "0a79d8c3a219a483fb90d499ae876723",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4",
            "size": 421671,
            "upload_time": "2023-04-04T16:47:27",
            "upload_time_iso_8601": "2023-04-04T16:47:27.611461Z",
            "url": "https://files.pythonhosted.org/packages/d1/35/c0250f36b7eb394b7b58076ce74d5342f2f8e0d9b61cdca6ab156f938354/tronpytool-3.6.82.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-04 16:47:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "tokenchain",
    "github_project": "tronpytool",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "lcname": "tronpytool"
}
        
Elapsed time: 0.06098s