petertodd/python-bitcoinlib
Python3 library providing an easy interface to the Bitcoin data structures and protocol. observed · 2026-08-28
Health v2 · maintenance only
28/100
- Activity 11
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4920
- days_rel: n/a
- days_push: 537
- n_releases_24m: 0
Adoption not part of the score
1948 stars · 646 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python 3 library providing a low-level, ground-up interface to Bitcoin data structures and protocol internals, including transactions, scripts, serialization, and Bitcoin Core RPC support. It closely mirrors the Satoshi C++ codebase naming and separates consensus-critical code under bitcoin.core.
Use cases
- construct and sign raw bitcoin transactions in python
- parse and serialize bitcoin blocks and transactions
- talk to a bitcoin core node over rpc
- verify bitcoin scripts and evaluate opcodes
- encode and decode base58 addresses and private keys
- build p2sh spending transactions programmatically
When to choose
- you need low-level manipulation of bitcoin protocol internals rather than a wallet
- you want consensus-critical data structures that mirror bitcoin core behavior
- you're writing scripts or tooling that interacts with a bitcoin core node
When to avoid
- you want a high-level wallet or payment processing library
- you need a full node or network peer implementation
- you're building for other cryptocurrencies with different consensus rules
Facets
library · maturity active
serialization cryptography rpc parser blockchain developer-tools apis python windows cross-platform bitcoin bitcoin-core-rpc transactions script-verification low-level-protocol cryptocurrency linux macos
2 sources
- readme: https://github.com/petertodd/python-bitcoinlib · fetched 2026-08-28 · c3ad11d5712e
- registry_pypi: https://pypi.org/pypi/python-bitcoinlib/json · fetched 2026-08-29 · 2c8398ae633d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| petertodd/python-bitcoinlib | main | 28 |
For agents
markdown · JSON · MCP: product_card(name="petertodd/python-bitcoinlib")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem