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¶
-
Installation
Install the SDK via pip or uv
-
Quickstart
Get up and running in 5 minutes
-
Configuration
Configure authentication and options
-
API Reference
Complete client and model documentation
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 |
Related¶
- Tessera Server - The Tessera API server
- Tessera Documentation - Full server documentation
- PyPI Package - Install via pip