Python Compatibility Requirements

Python Compatibility Requirements

The Python Datadog Trace library is open source. View the Github repository for more information.

Python versions 2.7+ and 3.5+ are supported in the latest version of the tracer. Python 3.4 is supported in versions 0.35.x and below of the Python tracer.

Integrations

To request support for additional libraries, contact our awesome support team.

Web framework compatibility

The ddtrace library includes support for a number of web frameworks, including:

Framework Supported Version Library Documentation
asgi >= 2.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#asgi
aiohttp >= 1.2 https://ddtrace.readthedocs.io/en/stable/integrations.html#aiohttp
Bottle >= 0.11 https://ddtrace.readthedocs.io/en/stable/integrations.html#bottle
CherryPy >= 11.2.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#cherrypy
Django >= 1.8 https://ddtrace.readthedocs.io/en/stable/integrations.html#django
djangorestframework >= 3.4 https://ddtrace.readthedocs.io/en/stable/integrations.html#django
Falcon >= 1.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#falcon
Flask >= 0.10 https://ddtrace.readthedocs.io/en/stable/integrations.html#flask
FastAPI >= 0.51 https://ddtrace.readthedocs.io/en/stable/integrations.html#fastapi
Molten >= 0.7.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#molten
Pylons >= 0.9.6 https://ddtrace.readthedocs.io/en/stable/integrations.html#pylons
Pyramid >= 1.7 https://ddtrace.readthedocs.io/en/stable/integrations.html#pyramid
pytest >= 3.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#pytest
Sanic >= 19.6.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#sanic
Starlette >= 0.13.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#starlette
Tornado >= 4.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#tornado

Datastore compatibility

The ddtrace library includes support for the following data stores:

Datastore Supported Version Library Documentation
algoliasearch >= 1.20.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#algoliasearch
Cassandra >= 3.5 https://ddtrace.readthedocs.io/en/stable/integrations.html#cassandra
Elasticsearch >= 1.6 https://ddtrace.readthedocs.io/en/stable/integrations.html#elasticsearch
Flask Cache >= 0.12 https://ddtrace.readthedocs.io/en/stable/integrations.html#flask-cache
Mariadb >= 1.0.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#mariadb
Memcached pylibmc >= 1.4 https://ddtrace.readthedocs.io/en/stable/integrations.html#pylibmc
Memcached pymemcache >= 1.3 https://ddtrace.readthedocs.io/en/stable/integrations.html#pymemcache
MongoDB Mongoengine >= 0.11 https://ddtrace.readthedocs.io/en/stable/integrations.html#mongoengine
MongoDB Pymongo >= 3.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#pymongo
MySQL MySQL-python >= 1.2.3 https://ddtrace.readthedocs.io/en/stable/integrations.html#module-ddtrace.contrib.mysqldb
MySQL mysqlclient >= 1.3 https://ddtrace.readthedocs.io/en/stable/integrations.html#module-ddtrace.contrib.mysqldb
MySQL mysql-connector >= 2.1 https://ddtrace.readthedocs.io/en/stable/integrations.html#mysql-connector
Postgres aiopg >= 0.12.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#aiopg
Postgres psycopg >= 2.4 https://ddtrace.readthedocs.io/en/stable/integrations.html#module-ddtrace.contrib.psycopg
PynamoDB >= 4.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#pynamodb
PyODBC >= 4.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#pyodbc
Redis >= 2.6 https://ddtrace.readthedocs.io/en/stable/integrations.html#redis
Redis redis-py-cluster >= 1.3.5 https://ddtrace.readthedocs.io/en/stable/integrations.html#module-ddtrace.contrib.rediscluster
SQLAlchemy >= 1.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#sqlalchemy
SQLite3 Fully Supported https://ddtrace.readthedocs.io/en/stable/integrations.html#sqlite
Vertica >= 0.6 https://ddtrace.readthedocs.io/en/stable/integrations.html#vertica

Library compatibility

The ddtrace library includes support for the following libraries:

Library Supported Version Library Documentation
aiobotocore >= 0.2.3 https://ddtrace.readthedocs.io/en/stable/integrations.html#aiobotocore
asyncio Fully Supported https://ddtrace.readthedocs.io/en/stable/integrations.html#asyncio
Botocore >= 1.4.51 https://ddtrace.readthedocs.io/en/stable/integrations.html#botocore
Boto2 >= 2.29.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#boto2
Celery >= 3.1 https://ddtrace.readthedocs.io/en/stable/integrations.html#celery
Consul >= 0.7 https://ddtrace.readthedocs.io/en/stable/integrations.html#consul
Futures Fully Supported https://ddtrace.readthedocs.io/en/stable/integrations.html#futures
gevent >= 1.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#gevent
Grpc >= 1.8.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#grpc
httplib Fully Supported https://ddtrace.readthedocs.io/en/stable/integrations.html#httplib
Jinja2 >= 2.7 https://ddtrace.readthedocs.io/en/stable/integrations.html#jinja2
Kombu >= 4.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#kombu
Mako >= 0.1.0 https://ddtrace.readthedocs.io/en/stable/integrations.html#mako
Requests >= 2.08 https://ddtrace.readthedocs.io/en/stable/integrations.html#requests
urllib3 >= 1.22 https://ddtrace.readthedocs.io/en/stable/integrations.html#urllib3

Further Reading

Additional helpful documentation, links, and articles: