Skip to main content

seams

The typed Python client for the seams control plane. Generated from the OpenAPI document, which is emitted from the API's route table — so it cannot describe a shape the API does not serve, and it stays in step with @ourseams/sdk.

import os
from seams import Seams

seams = Seams(api_key=os.environ["SEAMS_SECRET_KEY"])

seams.users.create("alice", models.CreateEndUserRequest(email="alice@firm.com"))
key = seams.keys.mint(models.MintKeyRequest(end_user_id="alice", bundle="pro"))
print(key.key)

One namespace per CLI command group

operationId carries the CLI's own verb, so the method reads like the command:

seams models add smart …        →  seams.models.add("smart", …)
seams bundles price pro fast …  →  seams.bundles.price("pro", …)
seams outcomes runs             →  seams.outcomes.runs()
seams usage --by model          →  seams.usage(by="model")

Top-level commands stay top-level: usage, margin, audit, doctor, capabilities. Routes the API serves but does not offer a client carry x-seams-internal: true and get no method.

Sync and async

Seams and AsyncSeams are generated from the same document and carry the same 76 methods.

Two runtime dependencies

httpx for the transport and pydantic for the models. Field names are Python's — end_users, not endUsers — with the wire name kept as an alias.

Regenerating

uv run python scripts/generate.py   # models and facade

src/seams/_generated/ is written by the generator. Do not edit it. The document it reads, ../openapi.json, is emitted by the TypeScript client from the API's route table.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ourseams_sdk-0.1.0.tar.gz (90.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ourseams_sdk-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file ourseams_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: ourseams_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 90.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for ourseams_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52c73bbcc5d7f98404d1b651f7c71f816c5b1e4d713b41b9e82b9d1e8c3cc54a
MD5 ce0340e287bfae0f30c61c97e4df429a
BLAKE2b-256 34671c3924d0e966c46a1ec02d027c986de58d1cfec528b7b9702e2d45e9d5be

See more details on using hashes here.

File details

Details for the file ourseams_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ourseams_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f6eef186736222447da8cf58241e6fdfffc780da15c5c7baff11540453eb88a
MD5 d49aac44c3088bb8674639d8145789bc
BLAKE2b-256 d2325917d6ed7e6c15581109c9d482f06979aca49979ae43d0088d8ebb0b15a5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page