Skip to content

Tessera Python SDK

Python SDK for Tessera - Data contract coordination for warehouses.

The Tessera SDK provides a type-safe Python client for interacting with the Tessera API. It supports both synchronous and asynchronous operations.

Why Use the SDK?

  • Type-safe - Full Pydantic model support with IDE autocompletion
  • Sync and async - Choose the client that fits your use case
  • Error handling - Typed exceptions for different error scenarios
  • Simple configuration - Environment variables or explicit config

Quick Example

from tessera_sdk import TesseraClient

client = TesseraClient(base_url="http://localhost:8000")

# Create a team
team = client.teams.create(name="data-platform")

# Create an asset
asset = client.assets.create(
    fqn="warehouse.analytics.dim_customers",
    owner_team_id=team.id
)

# Publish a contract
result = client.assets.publish_contract(
    asset_id=asset.id,
    schema={
        "type": "object",
        "properties": {
            "id": {"type": "integer"},
            "name": {"type": "string"}
        }
    },
    version="1.0.0"
)

Getting Started

Resources

Resource Description
client.teams Team management
client.assets Asset and contract management
client.contracts Contract lookup and comparison
client.registrations Consumer registration
client.proposals Breaking change proposals