Skip to main content

bdkpython

The Python language bindings for the bitcoindevkit.

See the package on PyPI.

Working with the submodule

This repository uses the bdk-ffi repository as a git submodule. Here are useful tips for working with the submodule:

  1. When initially cloning the repo, the bdk-ffi submodule will be empty locally. You can initiate/populate the directory by using the just submodule-init command.
  2. 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 the just submodule-reset command.

Prerequisites

Before building bdkpython locally, ensure you have installed the following tools:

  • Rust toolchain (rustup): Required to compile bdk-ffi. Install from rustup.rs.
  • uv: Fast Python package installer and resolver. Install from Astral uv Docs.
  • just (optional): Command runner used for repo tasks. Install via cargo install just or your system package manager.

Windows Users

  • Windows: Rust's x86_64-pc-windows-msvc target needs the MSVC toolchain and Windows SDK. rustup-init offers to install these for you; otherwise install Visual Studio Build Tools with the Desktop development with C++ workload. The build scripts are bash, so run them from Git Bash.

Local Testing and Usage

  1. Run one of the build scripts (skip the submodule update if you are making local changes to the bdk-ffi submodule)
  2. Sync dependencies with uv
  3. Create the wheel
  4. Install the library
  5. Run the tests

1. Build Script Commands

Run the build script corresponding to your operating system:

Linux:

bash scripts/generate-linux.sh

macOS (Apple Silicon / ARM64):

bash scripts/generate-macos-arm64.sh

macOS (Intel / x86_64):

bash scripts/generate-macos-x86_64.sh

Windows (Git Bash / MSYS2):

bash scripts/generate-windows.sh

Note: Pass --skip-submodule-update if you are making local changes to bdk-ffi and wish to preserve them instead of resetting to the committed submodule hash.

2–5. Setup, Build, Install & Test Commands

# Sync dependencies with uv
uv sync

# Create the wheel
uv build --wheel -v

# Install the library
uv pip install ./dist/bdkpython-*.whl --force-reinstall

# Run the tests
uv run python -m unittest --verbose

Build HTML API Documentation (Optional)

  1. Generate docs
  2. Build HTML Documentation
uv run python ./docs/generate_docs.py
uv run python -m sphinx -b html -W --keep-going -v docs/source docs/_build/html

Metadata

Release files for bdkpython 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for bdkpython 3.1.1
File
bdkpython-3.1.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
bdkpython-3.1.1-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
bdkpython-3.1.1-cp313-cp313-macosx_11_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 11.0+ x86-64 Details
bdkpython-3.1.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
bdkpython-3.1.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
bdkpython-3.1.1-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
bdkpython-3.1.1-cp312-cp312-macosx_11_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 11.0+ x86-64 Details
bdkpython-3.1.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
bdkpython-3.1.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
bdkpython-3.1.1-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
bdkpython-3.1.1-cp311-cp311-macosx_11_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 11.0+ x86-64 Details
bdkpython-3.1.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
bdkpython-3.1.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
bdkpython-3.1.1-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
bdkpython-3.1.1-cp310-cp310-macosx_11_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 11.0+ x86-64 Details
bdkpython-3.1.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details

Total release size: 83.2 MB

Release files / bdkpython-3.1.1-cp313-cp313-win_amd64.whl

Download URL bdkpython-3.1.1-cp313-cp313-win_amd64.whl
Size 4.5 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
2264e6b6afe1285cdf8d75595b04af04938a1bde322fb98a84ae5b7fb45dd35a
BLAKE2b-256 checksum
How to use checksums
f79a99b99b6111658c6acccac020d0b74d14a181fd9bbd4244f9655818bd6020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL bdkpython-3.1.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 5.3 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
56aec79e8b4e0039bfbc5f36bcc2d4ccce9633bb614700d31d4432e730940022
BLAKE2b-256 checksum
How to use checksums
692910b97ea686e6fdce19c48c995c6b714826b22cdb884c73b91f627f992cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp313-cp313-macosx_11_0_x86_64.whl

Download URL bdkpython-3.1.1-cp313-cp313-macosx_11_0_x86_64.whl
Size 5.5 MB
Tags CPython 3.13 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
cacc8a4916ebdd0f50ee95871d2031f74d8b9ac5b5a9ed7876605dcaf6be20f9
BLAKE2b-256 checksum
How to use checksums
0ab66b821aa40e794eea847fee0c6dd920bc4b616a964ec542731e6fbe43ba90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL bdkpython-3.1.1-cp313-cp313-macosx_11_0_arm64.whl
Size 5.5 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1883bee84a4b46295b84357d8de9aeecbfb33239670e08c180c22f5295173895
BLAKE2b-256 checksum
How to use checksums
b7c50fe2fb5f46e66540937cbf595b93f5a2f3f717a8f7cd06bef59dfa9aa0f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp312-cp312-win_amd64.whl

Download URL bdkpython-3.1.1-cp312-cp312-win_amd64.whl
Size 4.5 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2f72e313dd364397aa6013e471fbca1475d250b9e8f3b441df9743cd94be90fc
BLAKE2b-256 checksum
How to use checksums
e0850dd364806c68e6fb388edf88cde08db9c5df9e41b651081068eef3ca1e58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL bdkpython-3.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 5.3 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
20e36eb38e74230691424e9e683e5bcde8c367fa1500b7eac23c8d6dc2609865
BLAKE2b-256 checksum
How to use checksums
df4da451de57e0e9296006d1447375da9abde165f69b63a081f1016f6b3e1afa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp312-cp312-macosx_11_0_x86_64.whl

Download URL bdkpython-3.1.1-cp312-cp312-macosx_11_0_x86_64.whl
Size 5.5 MB
Tags CPython 3.12 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
fa8a412d769ab9bd3822717333ef7af5fa1651d73ed5fb96dfb954d1ef832096
BLAKE2b-256 checksum
How to use checksums
14ad39d20831db08392f253b152538ae55bd424359de6ff3a09a3e642d04ab13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL bdkpython-3.1.1-cp312-cp312-macosx_11_0_arm64.whl
Size 5.5 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ce05e182431e1fd50f1d81176c32a2b1782ca20213ff8d1d5ba8452721fa0dd1
BLAKE2b-256 checksum
How to use checksums
b867933724d804033a29b96ccc606e4aab565a49138de8ec68db6060e50fc1b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp311-cp311-win_amd64.whl

Download URL bdkpython-3.1.1-cp311-cp311-win_amd64.whl
Size 4.5 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
0887a1482fc13018fdd932e898d7e71effd21d7551b3d2d089da9bd2328331e5
BLAKE2b-256 checksum
How to use checksums
2485fb279bae3c323dd9f86c241b02473af597b61422a8cbb4482b13c4cffbdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL bdkpython-3.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
Size 5.3 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f5ca7128da5465acebdb652e8279d235dca46cce64faed0aac473cdaf3b7e79f
BLAKE2b-256 checksum
How to use checksums
222d5cfa7934b42f1b732519652c57b77dacabf4c644f9ca8a692c0e05f43877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp311-cp311-macosx_11_0_x86_64.whl

Download URL bdkpython-3.1.1-cp311-cp311-macosx_11_0_x86_64.whl
Size 5.5 MB
Tags CPython 3.11 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
d96ba011eb031208aa7ff391edbe8bd7b82e49dfbd671499db82d807212a4b9e
BLAKE2b-256 checksum
How to use checksums
76a57d81cf5d8584d02fb0d9bd61bc02fc5078e4429fb7cec96b76b49ac27bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL bdkpython-3.1.1-cp311-cp311-macosx_11_0_arm64.whl
Size 5.5 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f86a04eabf2d9a992ef413c82766f0b5a8196d98163c7f3e6b81514734dca9df
BLAKE2b-256 checksum
How to use checksums
664fdfd661a38ffa568f392761928f739612186371ca402351360475dc465cfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp310-cp310-win_amd64.whl

Download URL bdkpython-3.1.1-cp310-cp310-win_amd64.whl
Size 4.5 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
f67a8b24720f2d5fb90becf7e36aebc791dfcc6be849b389b832776dd328886b
BLAKE2b-256 checksum
How to use checksums
5db427fa5433e7bd9ea9e3fc13ec4247401cf532a4c37e4389ad097d39b10312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL bdkpython-3.1.1-cp310-cp310-manylinux_2_28_x86_64.whl
Size 5.3 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
791bb8ee9eeacc8cd153574be66159c6504532cfa7380bece9b9e55b5dd89cbd
BLAKE2b-256 checksum
How to use checksums
0eb5e94d8dcf57a6e315dffde86ab8ddd233a5671257cf813a02818efb079f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp310-cp310-macosx_11_0_x86_64.whl

Download URL bdkpython-3.1.1-cp310-cp310-macosx_11_0_x86_64.whl
Size 5.5 MB
Tags CPython 3.10 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
7b9f9e18f8b35d6c73cc9467b75d63e1a0239742f562c20bc1d68ce59fe73192
BLAKE2b-256 checksum
How to use checksums
7aeae9a9f80fe52eaa74d7f26d3d0e800052e913cc24865ec4944631d7502aba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / bdkpython-3.1.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL bdkpython-3.1.1-cp310-cp310-macosx_11_0_arm64.whl
Size 5.5 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eaa03f4055b3df6988bdbaa58b6b85a86b7a2c85d800ba13dfa375d24d881a24
BLAKE2b-256 checksum
How to use checksums
d592ae86fda1898fa0f1316086f19e4da9cca504ca85fd395b380c74dbbbcc33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.1.1 This release

16 release files

2.0.0

16 release files

1.2.0

20 release files

1.1.0

20 release files

0.29.0

9 release files

0.28.3

9 release files

0.28.2

3 release files

0.28.1

3 release files

0.28.0

1 release file

0.26.1

7 release files

0.26.0

7 release files

0.3.0

15 release files

0.1.0

15 release files

0.0.5

15 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page