---
title: "Python SDK reference"
description: "This reference covers the Dex Python SDK. Check the SDK version your"
canonical_url: "https://docs.superdurable.io/zh-Hans/reference/python/1.37.x/"
source: "docs/reference-python_versioned_docs/version-1.37.x/index.mdx"
locale: "zh-Hans"
---

# Python SDK reference

This reference covers the Dex Python SDK. Check the SDK version your
application uses before you rely on a detail:

```bash
python -c 'import importlib.metadata; print(importlib.metadata.version("dex-python-sdk"))'
```

## Install

The Python SDK is the PyPI package **dex-python-sdk**. Pin an exact release in
**pyproject.toml** or your lockfile:

```bash
pip install dex-python-sdk==1.37.0
```

The package requires Python 3.11 or newer. Releases use the tag
**sdk-python/vX.Y.Z**.

## Supported versions

| SDK minor        | Server requirement                                                                                     |
| ---------------- | ------------------------------------------------------------------------------------------------------ |
| 1.37, 1.35       | server-zd 0.1.17 or newer (protocol version 4)                                                         |
| 1.32, 1.30, 1.29 | See the [compatibility matrix](https://docs.superdurable.io/zh-Hans/reference.md#compatibility-matrix) |

Minor numbers follow the shared Dex release train. A missing minor means the
Python SDK did not change in that release.

## API reference

Read the [Python SDK API reference](https://docs.superdurable.io/api/python/latest/) for the latest release, 1.37.0.

Versioned snapshots: [1.37.0](https://docs.superdurable.io/api/python/1.37/), [1.35.0](https://docs.superdurable.io/api/python/1.35/), [1.32.0](https://docs.superdurable.io/api/python/1.32/), [1.30.0](https://docs.superdurable.io/api/python/1.30/), [1.29.0](https://docs.superdurable.io/api/python/1.29/).

## Pages

- [Flows and Steps](https://docs.superdurable.io/zh-Hans/reference/python/1.37.x/flows-and-steps.md): Flow and Step behavior
  with Python code: start options, waits, Step decisions, Step options, and
  failure handling.
- [Workers](https://docs.superdurable.io/zh-Hans/reference/python/1.37.x/workers.md): Python names for Worker readiness,
  capacity, and shutdown settings.

## Release notes

See the [sdk-python releases](https://github.com/superdurable/dex/releases?q=sdk-python\&expanded=true)
on GitHub.
