GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bitcoindevkit/bdk-python: The Python language bindings for BDK.

BranchesTags
Open more actions menu

Latest commit

 

History

101 Commits
101 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
bdk-ffi @ 1c5f486
bdk-ffi @ 1c5f486
 
 
docs
docs
 
 
scripts
scripts
 
 
src/bdkpython
src/bdkpython
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
LICENSE-MIT
LICENSE-MIT
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
justfile
justfile
 
 
pyproject.toml
pyproject.toml
 
 
setup.py
setup.py
 
 
uv.lock
uv.lock
 
 

Repository files navigation

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

About

The Python language bindings for BDK.

bitcoindevkit.github.io/bdk-python/

Resources

Readme
Activity
Custom properties

Stars

11 stars

Watchers

2 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.