# Installation

> Install stx-python and import it.

Source: https://docs.stxapp.io/sdks/python/installation/

```bash
pip install stx-python
```

```bash
poetry add stx-python
```

```bash
uv add stx-python
```

Requires Python 3.9 to 3.13. The package is on PyPI as [stx-python](https://pypi.org/project/stx-python/) and imports as `stx`.

## Importing

```python
from stx import STX, AsyncSTX, STXWebSocket
```

Response models are in `stx.models`, and every exception is importable from `stx`.

## Check the install

```bash
python -c "import stx; print(stx.__version__)"
```

## Versioning

Pin an exact version in production (`stx-python==0.6.0`). Before 1.0.0, a minor release can change the API. Pre-releases such as `0.7.0rc1` install only when asked for: `pip install --pre stx-python`.

Uninstalling the package leaves `~/.stx/` (your credentials profile and keys) in place.
