Last 12 weeks · 3 commits
2 of 6 standards met
Exposes timeline pinning, which the v2 API gains in denoland/deployng#3494. holds a timeline on one of its revisions; releases it and the timeline goes back to serving whichever member revision was created most recently. Pinning never changes timeline membership. makes an already-built revision the live production revision without rebuilding it. It joins the default production timeline and pins it, which is why is what undoes it. Promote was not exposed by this SDK at all before. gains and . is what addresses a timeline in /, not : a slug is derived from the partition config name, so every git-branch timeline of an app shares one. It is the slug for timelines that exist once per app () and appends the partition values otherwise (, percent-encoded). Both APIs are implemented async-first with sync wrappers, and covered by offline tests that assert the requests they issue — including that a parameterized timeline ID stays a single path segment. is registered in so it actually runs in CI.
Adds revision retention support to the Python SDK, the counterpart to the console feature in denoland/deployng#3484 / denoland/deployng#3485. The per-revision garbage-collection policy is exposed as an enum, (matching the v2 API): follows the normal inactivity-based cleanup, exempts the revision from automatic deletion. / gain an optional field. Absent for organizations without the entitlement, so responses still parse unchanged. creates a retained revision (enterprise opt-in; the server rejects it otherwise). (async + sync) issues . Exports the type alias. All additions are optional, so the SDK keeps working unchanged for orgs without revision retention enabled.
Enables the previously-commented-out step in CI. The bulk of the suite (11 of 13 test files) drives a real sandbox backend and needs a , which CI does not have. Rather than wire live infra + a secret, a collection hook skips those tests when no token is present, so CI runs only the offline tests (, ). A local run that sets still runs the whole suite unchanged. Verified locally with no token: , exit 0; and , , all pass.
Repository: denoland/sandbox-py. Description: The Deno Sandbox Python SDK Stars: 6, Forks: 2. Primary language: Python. Languages: Python (100%). License: MIT. Homepage: https://deno.com/deploy/sandboxes Latest release: v0.15.0 (5mo ago). Open PRs: 1, open issues: 0. Last activity: 1mo ago. Community health: 37%. Top contributors: marvinhagemeister, piscisaureus, ry, arnauorriols.