---
title: Python SDK
description: Use the generated Python SDK for the Vortex Payments API.
---

# Python SDK

The Python SDK is generated from the Vortex Payments OpenAPI contract.

```bash
pip install vortex-sdk
```

```py
import vortex

# vp_test_ key = sandbox; vp_live_ key = production.
# Point at the sandbox host while you build and test.
configuration = vortex.Configuration(
    host="https://api.sandbox.vortex.nyc",
)
configuration.access_token = "<VORTEX_API_KEY>"
```

## Local source

- Generated package: `sdks/python`
- Package name: `vortex-sdk`
- Import name: `vortex`
- Generator: OpenAPI Generator

Regenerate with:

```bash
pnpm run sdk:generate
```
