← All posts
·5 min read·The DecisionChain Team

Getting Started with the DecisionChain Python SDK

Install, authenticate, and log your first tamper-evident decision in under ten minutes.

The Python SDK is the fastest way to wire DecisionChain into an existing model server.

Install

pip install decisionchain

Authenticate

from decisionchain import Client

audit = Client(api_key="dc_live_...")

Log a decision

audit.log(
    model="risk-scorer",
    model_version="3.2.1",
    inputs={"amount": 4200, "country": "DE"},
    output={"score": 0.82, "label": "review"},
)

That call returns a decision id, a chain hash, and the anchor batch the record will land in. Store the id next to your business record; the chain hash is verifiable by anyone with your public key.