mirror of
https://github.com/anthropics/skills
synced 2026-12-03 12:40:47 +00:00
Update claude-api skill: Python SDK 0.x -> 1.x upgrade guide (#1623)
Adds an `upgrade` subcommand that walks a project from anthropic 0.x to 1.x (httpx2 HTTP layer, Python 3.10 floor, removed deprecated surface). - New python/claude-api/sdk-upgrade.md: scope and version check, a greppable inventory of affected call sites, one section per breaking change, verification, and a report format. - SKILL.md: `upgrade` subcommand row and a reading-guide entry. - python/claude-api/README.md: timeouts use anthropic.Timeout, custom clients note httpx2, link to the SDK MIGRATION.md. - shared/live-sources.md: SDK major-version upgrade guides table.
This commit is contained in:
@@ -132,6 +132,14 @@ WebFetch these when a binding (class, method, namespace, field) isn't covered in
|
||||
|
||||
Each SDK repo also ships runnable programs under `examples/` — including the refusal-fallback / `fallbacks` examples (client-side middleware registration, fallback state, server-side `fallbacks` param). Fetch those for exact per-language syntax instead of translating another language's example.
|
||||
|
||||
### SDK major-version upgrade guides
|
||||
|
||||
Authoritative change lists for upgrading the SDK package itself across a major version. The bundled `{lang}/claude-api/sdk-upgrade.md` is the executable form; when the two disagree, the repository guide wins.
|
||||
|
||||
| SDK | URL | Extraction Prompt |
|
||||
| ------------------ | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
||||
| Python (0.x → 1.x) | `https://github.com/anthropics/anthropic-sdk-python/blob/main/MIGRATION.md` | "Extract every breaking change with its before/after code, the new minimum Python version, and the upgrade command" |
|
||||
|
||||
---
|
||||
|
||||
## Fallback Strategy
|
||||
|
||||
Reference in New Issue
Block a user