A clean and well-documented Python library for working with the Bitcoin protocol. It provides low-level tools for key and address management, transaction creation (including SegWit and Taproot), full script support with all opcodes, and raw block parsing. Designed for developers who want to understand and experiment with the internals of Bitcoin — from keys to scripts and transactions — while keeping the codebase simple, readable, and extensible. Currently in early development; API and features may evolve with future releases.
git clone https://github.com/kirodaki/btc-python-utils
cd btc-python-utilsThen install dependencies and set up the package:
pip install -r requirements.txtpython setup.pyTo update the package, run the update.bat file. It will install the latest version.
You can set up your development environment with:
git clone https://github.com/kirodaki/btc-python-utils
cd btc-python-utils
virtualenv -p python3 venv
. venv/bin/activate
python -m pip install -e ".[dev]"
pre-commit installIf you find this project useful, consider supporting future development:
- BTC: bc1q8grhtxdw37npcdadm7xa848vquqgurj9ecvpex
- ERC20: 0x2d19c72fb8b3a7cdc7fa4970b5c777966f547854
Thank you!🙏