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

# Python SDK reference

> Overview of the Apitally SDK for Python.

<CardGroup cols={2}>
  <Card title="GitHub repository" icon="github" href="https://github.com/apitally/apitally-py" target="_blank">
    apitally/apitally-py
  </Card>

  <Card title="PyPI package" icon="python" href="https://pypi.org/project/apitally/" target="_blank">
    apitally
  </Card>
</CardGroup>

<Tip>Running FastAPI on Cloudflare Workers? Use our [Serverless SDK](/sdk-reference/python-serverless/overview) instead.</Tip>

## Installation

The Apitally SDK for Python uses extras to install the correct dependencies for each framework.

<CodeGroup>
  ```shell pip theme={null}
  pip install "apitally[<your_framework>]"
  ```

  ```shell uv theme={null}
  uv add "apitally[<your_framework>]"
  ```

  ```shell poetry theme={null}
  poetry add "apitally[<your_framework>]"
  ```
</CodeGroup>

Replace the `<your_framework>` placeholder with the extra for your framework. The options are:

* `blacksheep`
* `django_ninja`
* `django_rest_framework`
* `fastapi`
* `flask`
* `litestar`
* `starlette`

## Supported frameworks

The Python SDK currently supports the web frameworks listed below. If your framework is not listed, please [let us know](/support) and we'll consider adding support for it.

Click on a framework for a detailed setup guide.

<CardGroup cols={3}>
  <Card
    title="BlackSheep"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/blacksheep-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="BlackSheep icon"
  />
}
    href="/setup-guides/blacksheep"
  />

  <Card
    title="Django Ninja"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/django-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="Django icon"
  />
}
    href="/setup-guides/django-ninja"
  />

  <Card
    title="Django REST Framework"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/django-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="Django icon"
  />
}
    href="/setup-guides/django-rest-framework"
  />

  <Card
    title="FastAPI"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/fastapi-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="FastAPI icon"
  />
}
    href="/setup-guides/fastapi"
  />

  <Card
    title="Flask"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/flask-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="Flask icon"
  />
}
    href="/setup-guides/flask"
  />

  <Card
    title="Litestar"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/litestar-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="Litestar icon"
  />
}
    href="/setup-guides/litestar"
  />

  <Card
    title="Starlette"
    icon={
  <img
    src="https://assets.apitally.io/frameworks/starlette-icon.svg"
    style={{ height: "32px", maxWidth: "unset", margin: 0 }}
    alt="Starlette icon"
  />
}
    href="/setup-guides/starlette"
  />
</CardGroup>
