---
title: "Connect Python (Django, FastAPI, Flask)"
description: "Install Xovris in a Python (Django, FastAPI, Flask) project with one command, verify the first event and remove it cleanly."
url: https://xovris.ai/docs/connect/python/
---

# Connect Python (Django, FastAPI, Flask)

Install Xovris in a Python (Django, FastAPI, Flask) project with one command, verify the first event and remove it cleanly.

Support: Connects today - The wizard adds OpenTelemetry for Python with the instrumentation for each library your app uses (uv, Poetry or requirements.txt) and starts your Procfile through opentelemetry-instrument and writes the OpenTelemetry variables to .env; Python (Django, FastAPI, Flask) is released once its install test passes in CI.

## Run the wizard

Xovris makes this change for you: connect GitHub once and Xovris raises a pull request that lists every change, for you to review and merge. Do it yourself instead: run the command above in the folder that holds your project’s package.json – it opens your browser once to sign you in, and you never copy a key.

pip:

```sh
npx xovris@latest init
```

uv:

```sh
npx xovris@latest init
```

poetry:

```sh
npx xovris@latest init
```

## Variables it writes

The wizard writes these to .env and adds that file to .gitignore if it is not already ignored. It refuses to write a key into a file git tracks.

- `OTEL_EXPORTER_OTLP_ENDPOINT`
- `OTEL_EXPORTER_OTLP_HEADERS`

## Check it works

The wizard ends by waiting for your first stored event. To check again later, run:

```sh
npx xovris@latest verify
```

## Remove it

This reverses every change the wizard recorded and revokes the key, then confirms both are gone:

```sh
npx xovris@latest remove
```

## Packages

```sh
pip install opentelemetry-distro opentelemetry-exporter-otlp
```

## What you get

- Server errors: Through OpenTelemetry
- Browser errors: Not collected
- Traces: Through OpenTelemetry
- Metrics: Through OpenTelemetry
- Logs: Through OpenTelemetry
- Releases: Not collected
- Readable stack traces: Not collected

## Supported versions

Written for Python 3.9 or later.

## If you already use another tool

The wizard looks for existing instrumentation first and tells you what it will do before it changes anything, so you never send each error twice.

- OpenTelemetry: Adds Xovris as a second OpenTelemetry exporter – your existing setup keeps working unchanged.
- Sentry: Offers to run both side by side for a while, or to switch over; it never sends one error to Xovris twice.
- Datadog: Leaves the existing agent in place and offers to export through OpenTelemetry instead of adding a second agent.
- New Relic: Leaves the existing agent in place and offers to export through OpenTelemetry instead of adding a second agent.
