Skip to main content

A Truffle-like tool for Python smart contracts

Project description

pyTuft

A Truffle-like tool for managing Python smart contracts on Omne.

Installation

Prerequisites

Make sure you have the following installed:

  • Python 3.6+

Installing pyTuft

pip install pyTuft

Configuration

Create a pyTuft_user_config.py file in your project directory with the following content:

BLOCKCHAIN_URL = 'http://localhost:5000'
DEPLOYER_ADDRESS = '0xYourAddress'

Usage

Compile a Contract

pyTuft compile <contract>

Deploy a Contract

pyTuft deploy <contract>

Execute a Contract

pyTuft execute --contract_id <contract_id> --function_name <function_name> --args <arg1> <arg2>

Byte-compiled / optimized / DLL files

Running Tests

pyTuft test

License

This project is licensed under the MIT License.

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

pyTuft-1.0.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

pyTuft-1.0.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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