Skip to content

ScriptCollection.first

Beta: This API may change shape in 0.1.x. It is not a frozen 1.0 contract.

Return the first item in the collection, or None if empty.

Uses the lazy iterator so only the first page is fetched.

Signature

first() -> T | None

Return shape

T | None

Permission

This is a local SDK helper. It does not call the CloudSprite HTTP API.

Usage

script_collection.first()