libipld
Python binding to the Rust IPLD library
What it is and what it does
libipld is a Python binding to a Rust implementation of the IPLD (InterPlanetary Linked Data) specification, designed to accelerate serialization and deserialization of distributed data formats. It exposes functions to encode and decode CIDs (content identifiers), DAG-CBOR binary objects, multibase-encoded strings, and CAR (Content Addressable Archive) files—all core primitives for decentralized systems and the AT Protocol.
The package trades install complexity (compiled wheels across multiple platforms and Python versions) for performance: benchmarks show it substantially faster than pure-Python alternatives like dag_cbor and py-ipld-dag on typical workloads. It has no runtime dependencies and requires Python 3.8 or higher, making it straightforward to integrate into projects that need fast IPLD operations.
Use it for:
- Accelerate AT Protocol SDK operations by replacing slow Python IPLD serialization with Rust-backed encoding and decoding
- Decode and inspect CIDs in distributed systems to extract hash, version, and codec metadata
- Serialize and deserialize DAG-CBOR data structures efficiently in applications handling large volumes of linked data
- Encode and decode multibase-encoded strings for interoperability with systems using different base encodings
- Parse CAR archive files to extract header metadata and block data in content-addressed storage systems
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
libipld provides fast Python bindings to a Rust IPLD library for encoding and decoding CIDs, DAG-CBOR, multibase, and CAR formats used in distributed systems and the AT Protocol.
Yes, if you work with IPLD formats (especially in AT Protocol contexts) and need performance beyond pure Python. The permissive MIT license, active maintenance, zero runtime dependencies, and broad platform support make it low-risk. Medium install friction is typical for compiled packages and not a blocker. No known vulnerabilities.
Install
libipld on PyPI
pip
pip install libiplduv
uv add libipldpoetry
poetry add libipldInstalling libipld
Before you install
Medium install friction due to compiled wheels for multiple Python versions and architectures. Active maintenance with recent releases; last commit 2026-07-18 and production-stable status indicate ongoing support.
License in practice
MIT license (permissive) means you can use, modify, and distribute libipld with minimal restrictions in both open and closed projects.
Quickstart
pip install libipld
import libipld
# Decode a CID
result = libipld.decode_cid('bafyreig7jbijxpn4lfhvnvyuwf5u5jyhd7begxwyiqe7ingwxycjdqjjoa')
print(result) # {'hash': {...}, 'version': 1, 'codec': 113}
# Encode and decode DAG-CBOR
encoded = libipld.encode_dag_cbor({'a': 12, 'b': 'hello!'})
decoded = libipld.decode_dag_cbor(encoded)
print(decoded) # {'a': 12, 'b': 'hello!'}
Verify before relying
- Whether performance gains over pure-Python alternatives justify the compiled dependency in your specific use case
- Compatibility with PyPy beyond the classifier claim—wheel availability is limited to CPython versions
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 79 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 588,602/month — #5,867 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: libipld-3.4.1-cp310-cp310-macosx_10_12_x86_64.whl; libipld-3.4.1-cp310-cp310-macosx_11_0_arm64.whl; libipld-3.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; libipld-3.4.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; libipld-3.4.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; libipld-3.4.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; libipld-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; libipld-3.4.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; libipld-3.4.1-cp310-cp310-musllinux_1_1_aarch64.whl; libipld-3.4.1-cp310-cp310-musllinux_1_1_x86_64.whl; libipld-3.4.1-cp310-cp310-win32.whl; libipld-3.4.1-cp310-cp310-win_amd64.whl; libipld-3.4.1-cp311-cp311-macosx_10_12_x86_64.whl; libipld-3.4.1-cp311-cp311-macosx_11_0_arm64.whl; libipld-3.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; libipld-3.4.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; libipld-3.4.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; libipld-3.4.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; libipld-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; libipld-3.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Keywords: library, lib, ipld, cid, multibase, multihash, dag, cbor, dag-cbor
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
py-cidpy-cid encodes and decodes CIDs (Content…
permissive · top 15,000 on PyPI
betterproto-rust-codecProvides fast Rust-based conversion between…
permissive · top 15,000 on PyPI
rlpEncodes and decodes data using Recursive Length…
permissive · top 5,000 on PyPI
eth-rlpProvides RLP (Recursive Length Prefix) encoding…
permissive · top 5,000 on PyPI
rustworkxA high-performance graph library for Python,…
permissive · top 5,000 on PyPI
cbor2Encodes and decodes CBOR (Concise Binary Object…
permissive · top 1,000 on PyPI
atprotoPython SDK for the AT Protocol that provides…
permissive · top 5,000 on PyPI
databento-dbndatabento-dbn provides Python bindings for…
permissive · top 5,000 on PyPI
faster-eth-abiEncodes and decodes Ethereum ABI data…
permissive · top 15,000 on PyPI
py-multibaseEncodes and decodes data using the Multibase…
permissive · top 15,000 on PyPI