Skip to content

Docs

TypeSafe Python SDK: Advanced Usage

Documentation for performance tuning, logging, and forward compatibility in the TypeSafe Python SDK, covering client reuse, zstd compression, HTTP/2, connection limits, and extra_body request fields.
Format
Docs
Reading time
2 min
Published by
Community
Added
Nov 23, 2026

Highlights

  • Recommends reusing a client instance across requests to avoid new connections and TLS handshakes.
  • Clients compress request bodies of 1 KiB or more with zstd; install typesafe-sdk[zstd] on Python earlier than 3.14.
  • Default clients open at most 100 connections and keep them open for 30 seconds while idle.
  • Logging goes to the typesafe_sdk logger; TYPESAFE_LOG_LEVEL accepts debug, info, warning, error, or off.
  • Secret headers such as authorization, API keys, and cookies are redacted from log output, but bodies are not.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

Hacker News: Simon Willison's overview of Noul, Choice, and Score, and where a decision model fits.

benwerd53 pointsJev introduces a new shape of LLMRead the thread on Hacker News

X: Diogo Almeida in five minutes

X: LLMs vs. Jev, clearly explained

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai