Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Latest commit

 

History

History
60 lines (47 loc) · 1.31 KB

README.md

File metadata and controls

60 lines (47 loc) · 1.31 KB

bdk-python

⚠️⚠️ The code in this repository has been moved to bdk-ffi, and development is continuing there. This repository is now considered an archive, and will not accept new pull requests or issues. ⚠️⚠️




The Python language bindings for the bitcoindevkit.

See the package on PyPI.

Install from PyPI

Install the latest release using

pip install bdkpython

Run the tests

pip3 install --requirement requirements.txt
bash ./generate.sh
python3 setup.py --verbose bdist_wheel
pip3 install ./dist/bdkpython-<yourversion>-py3-none-any.whl
python -m unittest --verbose tests/test_bdk.py

Build the package

# Install dependencies
pip install --requirement requirements.txt

# Generate the bindings first
bash generate.sh

# Build the wheel
python3 setup.py --verbose bdist_wheel

Run tox to build and test locally

# install dev requirements
pip install --requirement requirements-dev.txt

# build bindings glue code (located at ./src/bdkpython/bdk.py)
source ./generate.sh

# build and test
tox -vv

Install locally

pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl