eth-typing
eth-typing: Common type annotations for ethereum python packages
What it is and what it does
eth-typing is a library that defines common type annotations used across Ethereum Python packages. It provides standardized type hints for Ethereum-specific concepts, allowing developers to write type-safe code when working with Ethereum in Python.
The package is maintained as part of the Ethereum ecosystem and serves as a foundational layer for type consistency across related libraries. It has a single runtime dependency (typing_extensions) and supports Python 3.10 through 3.14, making it lightweight and easy to integrate into existing projects.
Use it for:
- Define type-safe function signatures when building Ethereum smart contract interaction libraries.
- Ensure consistent type annotations across multiple Ethereum-related Python packages in a project.
- Reduce boilerplate by importing pre-defined Ethereum types instead of defining them locally.
- Enable IDE autocompletion and static type checking for Ethereum-specific data structures.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides standardized type annotations for Ethereum Python packages, enabling type-safe development across the Ethereum ecosystem.
Yes. This is a lightweight, actively maintained foundational library with no security vulnerabilities, permissive licensing, and minimal dependencies. Install it if you're building Ethereum Python tools or integrating with Ethereum libraries that depend on it for type consistency.
Install
eth-typing on PyPI
pip
pip install eth-typinguv
uv add eth-typingpoetry
poetry add eth-typingInstalling eth-typing
Before you install
Low install friction with a single lightweight dependency (typing_extensions). Active maintenance with recent releases; last commit 2026-03-25. Supports Python 3.10 through 3.14.
License in practice
MIT license (permissive) means you can use this freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install eth-typing
from eth_typing import Address
# Use type annotations in your code
def transfer(to_address: Address, amount: int):
pass
Requires Python 3.10 or later.
Verify before relying
- Complete list of type definitions and classes exported by the package.
- Whether the package is actively used as a dependency by major Ethereum Python libraries.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing_extensions |
| Maintenance | actively maintained — 142 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,823,633/month — #1,841 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: eth_typing-6.0.0-py3-none-any.whl
Keywords: ethereum
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
eth-rlpProvides RLP (Recursive Length Prefix) encoding…
permissive · top 5,000 on PyPI
web3web3.py is a Python library for interacting…
permissive · top 5,000 on PyPI
eth-accounteth-account signs Ethereum transactions and…
permissive · top 5,000 on PyPI
eth-hashProvides the keccak256 hashing function used by…
permissive · top 5,000 on PyPI
eth-brownieBrownie is a Python framework for developing,…
permissive · top 15,000 on PyPI
faster-eth-utilsProvides Ethereum utility functions for address…
permissive · top 15,000 on PyPI
eip712Provides Python message classes for EIP-712…
permissive · top 15,000 on PyPI
py-solc-xManages installation and version control of the…
permissive · top 15,000 on PyPI