Skip to content

The python specific tron operation toolchain

License

Notifications You must be signed in to change notification settings

flllkis/tronpytool

 
 

Repository files navigation

🏗👷🏾 TronPyTool

Library API for Python on TRX or Tron

moodyeth moodyeth moodyeth moodyeth

Ethereum based all tool chain for smart contract development kit documentation.

Why do we use python

Using it because it is fast and easy. More importantly it runs directly by its own and no more dependencies.

Its much faster to building modules and calling functions on python. Also it can be wrapped into an executable binary on wasm or cpython that runs on natively any platforms.

If you are using PyCharm or similar IDE, all type are ready to show at your finger tips.

Get Started

pip3 install tronpytool

or upgrade using

sudo pip3 install tronpytool --upgrade

The development of tronpytool contract deployment tools:

Setup (for the early version, we are going to setup the workspace manually. )

Setup the folders: /vault /artifact /deploy_history /deploy_results /factoryabi

Why use tron-py-tool

It is a all-in-one package with zero setup and configurations that works for multiple architectures. It is lightweight and simple. Build-in ERC20 support and bulk token sending support. Out of the box that comes with solc-compile automation and web3 executions.

Features

  • support most of the evm compatible chains
  • golang module compile support
  • python module compile support
  • typescript module compile support

Examples:

Deployment of the new contract:
# !/usr/bin/env python
# coding: utf-8
import os


Show the amount of your wallet

#!/usr/bin/env python
# coding: utf-8
from tronpytool import Tron
from tronpytool import HttpProvider

tron = Tron().setNetwork('nile')


tron.toSun(1)
# result: 1000000

tron.fromSun(1000000)
# result: 1



Mint Coins

The example for minting coins with 18 decimal

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


Documentation is ready here

Also there is a brother library for those who works with EVM network.

📦 Showcase your project with this SDK

PR your link or your github repo here.

Donations

Welcome for donation for the good works!

About

The python specific tron operation toolchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%