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
2023-03-01 10:52:02 -05:00
pip install --requirement requirements.txt
2022-05-11 15:19:33 -04:00
bash ./generate.sh
2023-03-01 10:52:02 -05:00
python setup.py bdist_wheel --verbose
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl --force-reinstall
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
2023-03-01 10:52:02 -05:00
# Generate the bindings
bash generate.sh
# Build the wheel
2023-03-01 10:52:02 -05:00
python 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
2023-03-01 10:52:02 -05:00
# build bindings glue code (located at ./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
```