Skip to main content

pyetheroll

Build Status Coverage Status PyPI version Documentation Status

Python library to Etheroll smart contract

Usage

Simply set bet size, chances and wallet settings before rolling:

from pyetheroll.etheroll import Etheroll

etheroll = Etheroll()
bet_size_ether = 0.1
bet_size_wei = int(bet_size_ether * 1e18)
chances = 50
wallet_path = 'wallet.json'
wallet_password = 'password'

transaction = etheroll.player_roll_dice(
    bet_size_wei, chances, wallet_path, wallet_password)

It's also possible to set different contract address and chain ID:

from pyetheroll.constants import ChainID
from pyetheroll.etheroll import Etheroll

chain_id = ChainID.ROPSTEN
contract_address = '0xe12c6dEb59f37011d2D9FdeC77A6f1A8f3B8B1e8'
etheroll = Etheroll(chain_id, contract_address)

Find out more in docs/Examples.md.

Install

Latest stable release:

pip install pyetheroll

Development branch:

pip install --process-dependency-links \
https://github.com/AndreMiras/pyetheroll/archive/develop.zip

Metadata

Release files for pyetheroll 20191108

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyetheroll 20191108
File Size Uploaded
pyetheroll-20191108.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyetheroll 20191108
File Interpreter ABI Platform
pyetheroll-20191108-py3-none-any.whl Python 3 none any Details

Total release size: 22.0 kB

Release files / pyetheroll-20191108.tar.gz

Download URL pyetheroll-20191108.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2cffc9141f4ecdf780cc78e4680099ab6c9451074bffbd5a6a269bb84cc3c7c7
BLAKE2b-256 checksum
How to use checksums
c7f591ac022a620bc3a480c94e8ad26c527b3ec9c12b41d2ea168caeb7c1d6a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / pyetheroll-20191108-py3-none-any.whl

Download URL pyetheroll-20191108-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
739a489f8453404a890001f4ad039ee54df68a7ea4cf6f15184f9d22df455a24
BLAKE2b-256 checksum
How to use checksums
992f2eeb66aeba98ba2ec48e65c9da4d442668235b3b0e8ab9d7b57cb56c3ced
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

20191108 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page