> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# W&B SDK Python coding cheat sheet

> Quick reference for common W&B Python SDK patterns and code examples

This cheat sheet provides quick-reference Python code examples for common W\&B tasks, demonstrating recommended practices. Examples use placeholder syntax like `<project>` that you can replace with your own values. Each example is a standalone snippet you can adapt to your needs.

Select a card to view code examples in that category.

<Columns cols={1}>
  <Card title="Runs" href="/models/ref/sdk-coding-cheat-sheet/runs">
    Code examples to initialize, manage, and fork W\&B runs
  </Card>

  <Card title="Logging" href="/models/ref/sdk-coding-cheat-sheet/logging">
    Code examples to log metrics, hyperparameters, tables, and custom data to W\&B
  </Card>

  <Card title="Artifacts" href="/models/ref/sdk-coding-cheat-sheet/artifacts">
    Code examples to create, update, download, and manage W\&B Artifacts for data versioning
  </Card>

  <Card title="Registry" href="/models/ref/sdk-coding-cheat-sheet/registry">
    Code examples to organize and manage model versions in W\&B Registry
  </Card>
</Columns>
