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 🚧.
pip install aioweb3
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