skillfed

eth-typing

eth-typing: Common type annotations for ethereum python packages

eth-typing v6.0.0 6.8M downloads/30d#1,841 on PyPI37
Permissive license Active released

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-typing

uv

uv add eth-typing

poetry

poetry add eth-typing

Installing 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

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.14

Tags

ethereum type annotationseth python typingethereum type hintsblockchain python typesethereum development types
ethereumtype-hintsblockchain

More Internet packages