Async Web3 library
Project description
This is an opinionated web3 library.
- async as the first citizen.
- websocket support as the first citizen. (IPC will be added in the near future)
- it supports
eth_subscribe()
andeth_unsubscribe()
.
w3 = AsyncWeb3("ws://127.0.0.1:8546")
await w3.connect()
block_stream = await w3.subscribe_block()
async for new_block in block_stream:
print(f"got new block: {new_block}")
- It has no middleware support.
This library tries to simplify the interaction with the deployed contracts. If you want to deploy a new smart contract, please checkout the awesome brownie
tool.
How to Contribute:
- install
poetry
- under this folder, run
poetry install
- then run
poetry shell
- start the development
- run
poetry run pytest
- send PR
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
async-web3-0.2.4.tar.gz
(9.6 kB
view hashes)
Built Distribution
async_web3-0.2.4-py3-none-any.whl
(10.9 kB
view hashes)
Close
Hashes for async_web3-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f2328098c2ccde0a4ec006cbe08ac7b8d6686c12195abf8d94082253d987c1 |
|
MD5 | 47693a2b7d66a39218767e910fcf51f0 |
|
BLAKE2b-256 | d32f32a5270f6e23cc9ee65cd96948e5fc3fa8603c809a2564533f854f104f0b |