async-web3-0.3.1
توضیحات
Async Web3 library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | async-web3-0.3.1 |
| نام | async-web3 |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guanqun Lu |
| ایمیل نویسنده | guanqunlu@outlook.com |
| آدرس صفحه اصلی | https://github.com/guanqun/async-web3.py |
| آدرس اینترنتی | https://pypi.org/project/async-web3/ |
| مجوز | MIT |
This is an opinionated web3 library.
1. async as the first citizen.
2. websocket support as the first citizen.
3. it supports `eth_subscribe()` and `eth_unsubscribe()`.
```
w3 = AsyncWeb3(WebsocketTransport("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}")
```
4. 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:
1. install `poetry`
2. under this folder, run `poetry install`
3. then run `poetry shell`
4. start the development
5. run `poetry run pytest`
6. send PR
نیازمندی
| مقدار | نام |
|---|---|
| >=8.1.0,<9.0.0 | websockets |
| >=0.15.1,<0.16.0 | pytest-asyncio |
| >=5.18.0,<6.0.0 | web3 |
| >=1.10.0,<2.0.0 | eth-utils |
| >=2.1.1,<3.0.0 | eth-abi |
| >=1.14.6,<2.0.0 | eth-brownie |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl async-web3-0.3.1:
pip install async-web3-0.3.1.whl
نصب پکیج tar.gz async-web3-0.3.1:
pip install async-web3-0.3.1.tar.gz