The Python language bindings for the bitcoindevkit.
See the package on PyPI.
This repository uses the bdk-ffi repository as a git submodule. Here are useful tips for working with the submodule:
- When initially cloning the repo, the
bdk-ffi
submodule will be empty locally. You can intitiate/populate the directory by using thejust submodule-init
command. - If you make local changes to the
bdk-ffi
directory while developing and want to hard delete all changes and return to the exact committed version hash of the bdk-ffi repo, use thejust submodule-reset
command.
- Start a Python virtual environment
- Run one of the build script
- Create the wheel
- Install the library
- Run the tests
source .localpythonenv/bin/activate
bash scripts/generate-macos-arm64.sh
python3 setup.py bdist_wheel
pip3 install ./dist/bdkpython-<yourversion>.whl --force-reinstall
python3 -m unittest --verbose