omarish / aioweb3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aioweb3

asyncio support for web3.py.

web3 = AsyncWeb3()
contract = web3.eth.contract(address=addr, abi=IERC721_ENUMERABLE['abi'])
total_supply = await contract.functions.totalSupply().call()

Caution: 🚧 This is not yet production ready 🚧.

Install

pip install aioweb3

Development

Testing

There's the beginning of a test suite in the tests directory.

To run the tests:

$ pytest -s

It might help to set these environment variables:

export PYTHONASYNCIODEBUG=1
export PYTHONBREAKPOINT=ipdb.set_trace

About

License:MIT License


Languages

Language:Python 98.9%Language:Makefile 1.1%