web3.py
Python library for interacting with Ethereum and building Web3 applications.
Crypto and web3 PyPI
Used in agent projects
90
0.7% of 12,697 public repos built with AI coding agents
Rank in crypto and web3
#22 of 89
by use in those projects
Downloads
1.2M
PyPI, last 7 days, web3
GitHub stars
5,540
last push Sep 29, 2026
How web3.py is used
web3.py is a dependency in 90 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.7%), #22 of 89 in crypto and web3. The most used alternative there is Solana Web3.js. Projects that use it most often also use Requests (76.7%), solders (76.7%), python-dotenv (75.6%).
Often used with web3.py
| Requests | 76.7% of web3.py projects · 14.4× more than average |
|---|---|
| solders | 76.7% of web3.py projects · 23.0× more than average |
| python-dotenv | 75.6% of web3.py projects · 11.6× more than average |
| aiohttp | 62.2% of web3.py projects · 26.8× more than average |
| solana-py | 61.1% of web3.py projects · 22.7× more than average |
| eth-account | 56.7% of web3.py projects · 121.9× more than average |
| base58 | 52.2% of web3.py projects · 27.4× more than average |
| Pydantic | 44.4% of web3.py projects · 8.7× more than average |
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list web3.py as a dependency.
Install
| Package | pip install web3 |
|---|---|
| Main stacks | Python (87), Next.js (2), React Native / Expo (1) |
| Example projects | simons-freedom/X-monitor, imcrazysteven/Crypto-Trading-Analyze-Telegram-Bot, mikegianfelice/Hunter, marksantiago290/Solana-Token-Launch-Monitorning-Telegram-bot, ethena-labs/ethena-minting-client |
Alternatives to web3.py
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Solana Web3.js npm Official JavaScript SDK for interacting with the Solana blockchain. |
2,099 (16.5%) | 2.6M | 2,767 | MIT |
| viem npm TypeScript interface for Ethereum with type-safe interactions. |
1,566 (12.3%) | 6.5M | 3,577 | MIT |
| Solana SPL Token npm JavaScript API for interacting with Solana's SPL Token program. |
924 (7.3%) | 1.2M | 223 | Apache-2.0 |
| wagmi npm React hooks library for Ethereum interactions and wallet connections. |
650 (5.1%) | 1M | 6,759 | MIT |
| ethers.js npm Complete Ethereum library for building dapps, wallets and blockchain tools. |
574 (4.5%) | 3.6M | 8,710 | MIT |
| Solana Wallet Adapter npm React hooks and UI for connecting Solana wallets to dapps with state management. |
547 (4.3%) | 1M | 2,030 | Apache-2.0 |
| Anchor npm Framework for developing Solana smart contracts with TypeScript and Rust. |
438 (3.4%) | 851K | 5,142 | (MIT OR Apache-2.0) |
| solders pypi Python bindings for Solana Rust tools enabling efficient blockchain interaction. |
423 (3.3%) | 388K | 449 | — |