Python Supported Environments

This page provides an overview of supported environments for the Python Agent.

Python Supported Environments

This page provides an overview of supported environments for the Python Agent.

Python Versions

The Python agent supports these Python versions:

  • 3.8
  • 3.9
  • 3.10
  • 3.11
  • 3.12
  • 3.13

Operating Systems

The Python agent operates on:

  • Any Linux distribution based on glibc>=2.28 , GLIBCXX_>=8.5.0, the x86 64-bit, or arm64 architecture.

  • Alpine Linux (3.13+) distribution based on musl 1.2.2+, x86 64-bit, or arm64 architecture
  • Red Hat Enterprise Linux 8 and 9
Note: The Python agent does not support Power Architecture.

Multicloud Deployment Support

The agent supports deployment in the following multi-cloud environments:

  • Amazon Elastic Compute Cloud (Amazon EC2)
  • Amazon Elastic Container Service (Amazon ECS)
  • Amazon Elastic Kubernetes Service (Amazon EKS)
  • Azure Kubernetes Service (AKS)

Python Frameworks and Protocols

Python Agent supports:

  • ASGI supported frameworks such as FastAPI.
  • Any ASGI frameworks running under the Uvicorn ASGI server.
  • WSGI supported frameworks such as Django, Flask, CherryPy, Bottle, and Pyramid .
  • Tornado

You can configure the agent to instrument any WSGI-based and ASGI-based application or framework as Python Web, including but not limited to those listed in the following tables.

At present, the Python agent fully supports exception detection in Django, Flask, CherryPy, Bottle, Pyramid, Tornado, and FastAPI frameworks. Other frameworks and custom applications may install exception handlers that effectively hide some exceptions from the agent. In such cases, the agent will only detect exceptions during exit calls, missed exceptions that are propagated to the WSGI or ASGI middleware, and exceptions reported via the custom business transaction API.

ASGI-Based Framework Version Notes
FastAPI 0.124.4 - 0.135.1 Only HTTP endpoints are supported. Varies by Python version
starlette 0.44.0 - 0.52.1 Varies by Python version
uvicorn 0.35.0
WSGI-Based Framework Version Notes
WSGI 1.0

Entry point type: Python web

Default transaction naming: the first two segments of the URI

Bottle

0.13.4

CherryPy

18.9.0

Django

3.1

Flask

2.1.3

PasteDeploy

3.1.0

Pyramid

2.0.2
mod_wsgi 4.7.1
Miscellaneous Frameworks Version Notes
Tornado 6.0.4 - 6.1 (varies by Python version)

Entry point type: Python web

Default transaction naming: the first two segments of the URI

AIOHTTP 3.10.11 - 3.13.3 (varies by Python version)

Only HTTP endpoints are supported

waitress 3.0.0 - 3.0.2 Varies by Python version

Database Exit Points

Supported Database Exit Points Version
mysql-connector-python 8.0.22
mysqlclient 1.4.4
oracledb 3.4.2
psycopg2-binary 2.9.11
pymongo 3.11.4 - 3.12.3 (varies by Python version)
PyMySql 1.1.2
SQLAlchemy 1.0.11 - 1.3.24 (varies by Python version)

HTTP Exit Points

Supported HTTP Exit Points
aiohttp 3.10.11 - 3.13.3 (varies by Python version)
boto 2.49.0
httplib2 0.22.0
requests 2.26.0
tornado 6.4.2 - 6.5.4 (varies by Python version)
urllib3 2.2.3

Cache Exit Points

Supported Cache Exit Points
python-memcached 1.58
redis 2.10.3

AI Monitoring

Supported AI Monitoring
python-memcached 1.58
redis 2.10.3