bdk-ffi/bdk-python/README.md

49 lines
1.0 KiB
Markdown
Raw Normal View History

2021-12-06 13:04:15 -05:00
# bdk-python
The Python language bindings for the [bitcoindevkit](https://github.com/bitcoindevkit).
See the [package on PyPI](https://pypi.org/project/bdkpython/).
2021-12-13 19:43:39 -05:00
## Install from PyPI
Install the latest release using
```shell
pip install bdkpython
```
## Run the tests
```shell
2022-05-11 15:19:33 -04:00
pip3 install --requirement requirements.txt
bash ./generate.sh
python3 setup.py --verbose bdist_wheel
pip3 install ./dist/bdkpython-<yourversion>-py3-none-any.whl
2022-06-23 15:21:48 -04:00
python -m unittest --verbose tests/test_bdk.py
```
## Build the package
```shell
# Install dependencies
pip install --requirement requirements.txt
# Generate the bindings first
bash generate.sh
# Build the wheel
python3 setup.py --verbose bdist_wheel
```
2022-09-22 11:02:05 -04:00
## Run tox to build and test locally
```shell
# install dev requirements
pip install --requirement requirements-dev.txt
# build bindings glue code (located at .bdk-python/src/bdkpython/bdk.py)
2022-09-22 11:02:05 -04:00
source ./generate.sh
# build and test
2022-09-22 11:02:05 -04:00
tox -vv
```
## Install locally
```shell
2022-05-11 15:19:33 -04:00
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl
```