skillfed

dt

Dynatrace API Python client

dt v1.2.1 90.7K downloads/30d#13,569 on PyPI70
Permissive license AGING released

What it is and what it does

dt is a Python wrapper around the Dynatrace REST API designed to make programmatic access to Dynatrace monitoring data straightforward. It provides typed interfaces to query entities, retrieve metrics, manage API tokens, configure settings, and interact with ActiveGates and other infrastructure components. The client handles common HTTP concerns like retries, rate-limit backoff, and custom timeouts, and includes bindings for both Environment API V2 and V1 endpoints.

The package is intended for developers who need to automate Dynatrace operations, extract monitoring data for external analysis, or build workflows. It abstracts away raw HTTP details and provides Python objects with sensible defaults, making it practical for quick scripts and integration work. The implementation covers most major Dynatrace APIs, though some endpoints remain partially implemented or unimplemented.

Use it for:

  • Query host metrics and entity properties to build custom dashboards or export monitoring data for analysis.
  • Automate API token lifecycle management, including creation, rotation, and cleanup of unused tokens.
  • Retrieve and manage Dynatrace settings, anomaly detection rules, and credential vault entries programmatically.
  • Monitor ActiveGate status and configuration across your Dynatrace infrastructure.
  • Extract problem and event data for integration with external incident management or alerting systems.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Python client for the Dynatrace REST API with type hints and a focus on ease of use for exploring the API and writing quick scripts.

Yes, if you are actively using Dynatrace and need programmatic access to its APIs. The package has low install friction, permissive licensing, and no known vulnerabilities. However, note the aging maintenance status (288 days since last release) — verify that its API coverage and compatibility align with your Dynatrace version before committing to it for production automation.

Install

dt on PyPI

pip

pip install dt

uv

uv add dt

poetry

poetry add dt

Installing dt

Before you install

Low install friction with a single runtime dependency (requests). Last commit was 2025-10-30 and the project shows aging maintenance status with 288 days since the latest release, though it remains unarchived and has 70 repository stars.

License in practice

Licensed under Apache Software License (permissive), which permits commercial and private use with minimal restrictions.

Quickstart

pip install dt

from dt import Dynatrace

dt = Dynatrace("environment_url", "api_token")
for entity in dt.entities.list('type("HOST")', fields="properties.memoryTotal"):
    print(entity.entity_id, entity.display_name)

Requires a valid Dynatrace environment URL and API token to authenticate with the REST API.

Verify before relying

  • Whether the aging maintenance status (288 days since latest release) affects API compatibility with recent Dynatrace versions.
  • Coverage level for newer Dynatrace API endpoints not listed in the implementation progress table.
  • Whether the package's type hints and ease-of-use claims are validated for all supported Python versions (3.6 through 3.14).

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — requests
Maintenance aging — 288 days since the last release
Last repo commit
First released
Downloads 90,661/month — #13,569 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dt-1.2.1-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI ApprovedLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development

Tags

dynatrace api clientdynatrace python sdkmonitoring api integrationdynatrace rest clientapplication performance monitoring apiapm api client python
api-clientmonitoring

More Software Development packages