Files
brk/packages/brk_client
2026-01-14 16:38:53 +01:00
..
2026-01-14 16:38:53 +01:00
2026-01-11 23:08:08 +01:00
2026-01-14 01:20:25 +01:00
2026-01-11 17:19:00 +01:00
2026-01-11 18:55:40 +01:00
2026-01-02 19:08:20 +01:00
2026-01-11 17:19:00 +01:00
2026-01-11 23:08:08 +01:00
2026-01-14 16:38:53 +01:00
2026-01-11 23:08:08 +01:00

brk-client

Python client for the Bitcoin Research Kit API.

PyPI | API Reference

Installation

pip install brk-client

Quick Start

from brk_client import BrkClient

client = BrkClient("http://localhost:3110")

# Blockchain data (mempool.space compatible)
block = client.get_block_by_height(800000)
tx = client.get_tx("abc123...")
address = client.get_address("bc1q...")

# Metrics API - typed, chainable
prices = client.metrics.price.usd.split.close \
    .by.dateindex() \
    .range(-30)  # Last 30 days

# Generic metric fetching
data = client.get_metric("price_close", "dateindex", -30)

Configuration

client = BrkClient("http://localhost:3110", timeout=60.0)