TypeSafe AI Python SDK
Python SDK for TypeSafe AI.
Quickstart
Install the SDK:
uv add typesafe-sdk
Extras (for example, typesafe-sdk[http2]) supported:
http2: enable HTTP/2 supportpil: send Pillow imageszstd: compress request bodies on Python 3.13 and earlier
Set TYPESAFE_API_KEY in your environment, then instantiate and use the client:
from typesafe_sdk import Choice, TypeSafeClient
with TypeSafeClient() as client:
response = client.system_one(
state={"document": "I was charged twice. Please fix this ASAP."},
questions={
"category": Choice(
instructions="What is this ticket about?",
criteria={"billing": None, "technical": None, "other": None},
),
},
)
print(response.choices["category"].choice)
learn what TypeSafe is, what it can do, and how to use it in TypeSafe docs.
Documentation
Learn more in SDK docs.
Metadata
Release files for typesafe-sdk 0.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typesafe_sdk-0.7.5.tar.gz | 34.2 kB | With provenance | Details for typesafe_sdk-0.7.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typesafe_sdk-0.7.5-py3-none-any.whl | Python 3 | none | any | Details for typesafe_sdk-0.7.5-py3-none-any.whl |
Total release size: 84.1 kB
Release files / typesafe_sdk-0.7.5.tar.gz
| Download URL | typesafe_sdk-0.7.5.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eeeb0dc80a7161d84896db42a5016dc0a7c8872fa16540b70163e5357b6d398
|
|
BLAKE2b-256 checksum How to use checksums |
264d383aa14f4cfe5fb41023ea1cab52d7f79cc31ab200ee7314317cf89db744
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / typesafe_sdk-0.7.5-py3-none-any.whl
| Download URL | typesafe_sdk-0.7.5-py3-none-any.whl |
|---|---|
| Size | 49.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
967a8b61494d536abb55ee3f3a2b10e81685cb6baad6ccdcab588bdc6c9b86d2
|
|
BLAKE2b-256 checksum How to use checksums |
1cf6bee4c3b49570c2d312057c9e37c1446cf37eb1b86bf5872f7a797e803326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logSecurity for typesafe-sdk 0.7.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for typesafe_sdk-0.7.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.