multiaddr
Python implementation of jbenet's multiaddr
Decision gist · record as of 2026-08-14
Yes, if you are building or integrating with libp2p, IPFS, or other multiformats-based systems. The package is actively maintained, has no known vulnerabilities, and low install friction. The pre-alpha status and small maintainer team are worth noting for production use, but the core functionality is stable and widely used in the ecosystem.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10+; async DNS resolution requires trio and an event loop.
- Low friction: pure Python wheel with 12 runtime dependencies including trio for async DNS.
- Actively maintained with recent commits; marked pre-alpha but in use across the multiformats ecosystem.
License · maintenance · safety
MIT License (permissive) — Dual-licensed MIT or Apache 2.0—permissive either way, suitable for commercial and open-source projects without copyleft obligations.
last release 2026-03-17 (150 days) · last repo commit 2026-07-29 · 36 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 316,501 downloads/mo, #7,675 on PyPI
Alternatives
Verify before relying
pip install multiaddr
from multiaddr import Multiaddr
m = Multiaddr("/ip4/127.0.0.1/tcp/8080")
print(m.protocols())
print(m.to_bytes())- Whether DNS resolution performance scales to high-volume bootstrap node lookups in production p2p networks.
- Stability guarantees or breaking-change policy given pre-alpha status (Development Status :: 2).
What it is and what it does
py-multiaddr is a Python implementation of the multiaddr specification—a way to express network addresses as composable protocol stacks. Instead of separate IP, port, and protocol fields, multiaddr encodes them as a single string like `/ip4/127.0.0.1/tcp/8080/p2p/QmPeer`, making it easy to parse, validate, and manipulate complex network paths. It handles encapsulation and decapsulation (nesting protocols), DNS resolution with peer ID preservation, and wildcard expansion for server binding across network interfaces.
The package targets libp2p and IPFS ecosystems but is generally useful for any application needing a unified, protocol-agnostic address representation. It depends on trio for async DNS, base58 and multihash variants for encoding, and netaddr for IP manipulation. The API is straightforward: construct a Multiaddr from a string or bytes, call methods like `protocols()`, `encapsulate()`, `decapsulate()`, or `resolve()` to work with it.
Use it for
- Parsing and validating bootstrap node addresses in p2p networks with embedded peer IDs.
- Expanding wildcard addresses (0.0.0.0, ::) to concrete interfaces for server binding.
- Composing protocol stacks for tunneling scenarios (proxy → destination chains).
- Resolving DNS and DNSADDR records while preserving peer identity across resolution.
- Extracting and comparing protocol layers from complex network addresses.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building or integrating with libp2p, IPFS, or other multiformats-based systems.
The package is actively maintained, has no known vulnerabilities, and low install friction. The pre-alpha status and small maintainer team are worth noting for production use, but the core functionality is stable and widely used in the ecosystem.
Install
multiaddr on PyPI
Before you install
Low friction: pure Python wheel with 12 runtime dependencies including trio for async DNS. Actively maintained with recent commits; marked pre-alpha but in use across the multiformats ecosystem.
Requires Python 3.10+; async DNS resolution requires trio and an event loop.
License in practice
Dual-licensed MIT or Apache 2.0—permissive either way, suitable for commercial and open-source projects without copyleft obligations.
Quickstart
pip install multiaddr
from multiaddr import Multiaddr
m = Multiaddr("/ip4/127.0.0.1/tcp/8080")
print(m.protocols())
print(m.to_bytes())
Verify before relying
- Whether DNS resolution performance scales to high-volume bootstrap node lookups in production p2p networks.
- Stability guarantees or breaking-change policy given pre-alpha status (Development Status :: 2).
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 12 packagesbase58dnspythonidnanetaddrpsutilpy-cidpy-multicodecpy-multibasepy-multihashtrio-typingtriovarint |
| Maintenance | Actively maintained 150 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 316,501 / month, #7,675 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaIntended 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.13 |
Evidence: multiaddr-0.2.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 › “multiaddr parsing and construction”
- multiaddrParses, constructs, and manipulates multiaddrs—protocol-agnostic…
- ipfshttpclientA Python HTTP client library for interacting with IPFS…
- slySLY is a pure-Python implementation of lex and yacc for building…
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 ipaddr · netaddr · py-multicodec · ipaddress · pmd-net-proto · IPy · netifaces-plus · pproxy · zeroconf · ngrok