Learn by running code
Examples
Complete Python programs from the Yak guides. Open an example, copy or download its source, and follow the linked guide for setup and behavior.
01Run a remote TaskDeclare a task, invoke it remotely, and print its result.02Process inputs in parallelMap a task over a sequence with bounded concurrency and ordered results.03Serve HTTP endpointsDeclare GET and POST endpoints for a Live App.04Use a custom runtime imagePackage dependencies and local files into a Task’s image.05Pass configuration with SecretsInject an inline Secret and check that its key is available remotely.06Publish files to a VolumeStage a checkpoint, publish it, and read it from a remote Task.07Read from object storageMount an existing bucket prefix with a named credential Secret.08Use invocation scratch storageWrite a temporary file to a bounded Ephemeral Disk.