w3tools is a Python library that provides a set of tools to enhance the development of Web3 applications
Project description
w3tools: Enhanced Web3 Development Toolkit for Python
w3tools is a Python library that provides a set of tools to enhance the development of Web3 applications, including:
- Web3 RPC client for popular EVM-based blockchains supporting:
- popular RPC providers, like Infura, Alchemy, etc.
- multiple EVM-based blockchains, like Ethereum, Binance Smart Chain, etc.
- Websocket and HTTP RPC
- rate limiting and retrying
- skip validation of RPC method parameters
- debug mode
- cache
- custom RPC method
- Get token price from Uniswap and other DEXs
- Get Uniswap liquidity pool information
- more...
Installation
pip install w3tools
Usage
from w3tools.chain import ChainId
from w3tools.w3 import make_w3
w3 = make_w3(
ChainId.ETH,
"quicknode",
api_key="your key",
)
print(w3.eth.block_number)
Credits
Development
The project is still under development. Please feel free to contribute or report any issues and feature requests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file w3tools-0.1.2.tar.gz.
File metadata
- Download URL: w3tools-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
882e139a799ee2c896f56c7bceaceb6dcc67fd38af35e358984bb575c47a85a7
|
|
| MD5 |
53bce1597f5135ef5ccca312e5c26624
|
|
| BLAKE2b-256 |
850db3d3dad7a81991d2638bc453ca1d8f390ece669a6868e8c5590ad90fa5dd
|
File details
Details for the file w3tools-0.1.2-py3-none-any.whl.
File metadata
- Download URL: w3tools-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b0eee0718837fd09d45f2325c2f487237d214171563dc8003b534006783f1a2
|
|
| MD5 |
331ec8dc0b9c93873f07fe85b269c9c4
|
|
| BLAKE2b-256 |
b58130883e1444dbe9b5ab043014d0cb968324bce5e7634fe019852bd60901fa
|