web3
web3: A Python library for interacting with Ethereum
Decision gist · record as of 2026-08-14
Yes. web3.py is the de facto standard for Ethereum development in Python, actively maintained, permissively licensed, and carries low install friction. Install it if you need to interact with Ethereum from Python—whether for querying data, sending transactions, or building dApp backends. No known vulnerabilities as of the fact sheet date.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an Ethereum node endpoint (local or remote) to connect to; Python 3.8 or later.
- Low install friction with a pure-wheel distribution.
- Active maintenance with a recent release and ongoing commits.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use, modification, and distribution with minimal restrictions—standard permissive terms suitable for most projects.
last release 2026-05-01 (105 days) · last repo commit 2026-05-01 · 5,519 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,152,034 downloads/mo, #2,154 on PyPI
Alternatives
Verify before relying
pip install web3
from web3 import Web3
w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/YOUR_INFURA_KEY'))
print(w3.is_connected())- Whether pywin32 is required on all platforms or only Windows; may affect non-Windows install experience.
- Performance characteristics and rate limits when interacting with public RPC endpoints.
- Specific smart contract interaction patterns and ABI encoding/decoding workflows beyond basic connectivity.
What it is and what it does
web3.py is the standard Python interface to the Ethereum blockchain. It abstracts the JSON-RPC protocol used by Ethereum nodes, letting you query blockchain state, send transactions, deploy contracts, and listen to events without managing low-level HTTP or WebSocket details yourself. The library bundles Ethereum-specific utilities like account management (via eth-account), ABI encoding (via eth-abi), and type definitions (via eth-typing) into a cohesive API.
You use it by connecting to an Ethereum node—either a local node you run or a remote service like Infura—then calling methods to read data or submit transactions. It handles the cryptographic signing of transactions via eth-account and provides both synchronous (requests) and asynchronous (aiohttp, websockets) I/O patterns. The library supports modern Python versions and is actively maintained by the Ethereum Foundation.
Use it for
- Query account balances, transaction history, and contract state on Ethereum mainnet or testnets.
- Send Ether transfers or call smart contract functions from a Python script or application.
- Deploy new smart contracts and interact with their methods programmatically.
- Build backend services for decentralized applications (dApps) that need to read or write blockchain data.
- Monitor blockchain events and react to contract state changes in real time.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
web3.py is the de facto standard for Ethereum development in Python, actively maintained, permissively licensed, and carries low install friction. Install it if you need to interact with Ethereum from Python—whether for querying data, sending transactions, or building dApp backends. No known vulnerabilities as of the fact sheet date.
Install
web3 on PyPI
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a recent release and ongoing commits. The package carries 14 runtime dependencies including eth-account, eth-abi, and aiohttp, which are standard Ethereum tooling libraries.
Requires an Ethereum node endpoint (local or remote) to connect to; Python 3.8 or later.
License in practice
MIT license permits commercial and private use, modification, and distribution with minimal restrictions—standard permissive terms suitable for most projects.
Quickstart
pip install web3
from web3 import Web3
w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/YOUR_INFURA_KEY'))
print(w3.is_connected())
Verify before relying
- Whether pywin32 is required on all platforms or only Windows; may affect non-Windows install experience.
- Performance characteristics and rate limits when interacting with public RPC endpoints.
- Specific smart contract interaction patterns and ABI encoding/decoding workflows beyond basic connectivity.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 14 packageseth-abieth-accounteth-hasheth-typingeth-utilshexbytesaiohttppydanticpywin32requeststyping-extensionstypes-requestswebsocketspyunormalize |
| Maintenance | Actively maintained 105 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,152,034 / month, #2,154 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: web3-7.16.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “interact with ethereum”
- web3web3.py is a Python library for interacting with the Ethereum…
- eth-testereth-tester provides an in-memory Ethereum blockchain simulator for…
- etherscan-pythonProvides a complete Python client for Etherscan.io's blockchain API,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also aptos-sdk · cosmpy · etherscan-python · solana · stellar-sdk · py-evm · py-builder-relayer-client · eth-brownie · eth-tester · tronpy