dtaidistance

High performance library for time series distances and clustering.

EstablishedOpen SourceLow lock-in

Pricing

Free tier

Flat rate

Adoption

Stable

License

Open Source

Data freshness

Aging · Jun 8, 2026

Overview

What is dtaidistance?

dtaidistance is a Python library that provides high-performance implementations of Dynamic Time Warping (DTW) and other distance measures for time series analysis, along with tools for time series clustering. It's particularly useful for researchers and developers working on time series data.

Key differentiator

dtaidistance stands out with its high-performance DTW implementation and efficient clustering capabilities, making it a go-to library for researchers and developers working on complex time series data.

Capability profile

Capability Radar

Ease of StartEcosystemValueMaturityFlexibilityScale Ready

Honest assessment

Strengths & Weaknesses

↑ Strengths

High-performance implementation of Dynamic Time Warping (DTW)medium

Support for time series clusteringmedium

Efficient distance measures for time series analysismedium

↓ Weaknesses

Limited language supporthigh

dtaidistance is primarily a Python library, which can be a barrier for developers who prefer or are more comfortable with other languages.

Complex setup and dependenciesmedium

Installation requires specific versions of numpy, scipy, and cython, which may lead to dependency conflicts in large projects.

Poor documentation for advanced featureshigh

While the basic usage is well-documented, more complex functionalities like time series clustering lack detailed examples or explanations.

Performance issues with very large datasetsmedium

The library can become slow when processing extremely large time series datasets due to memory and computational constraints.

Fit analysis

Who is it for?

✓ Best for

Researchers who need high-performance DTW for large datasets

Data scientists working with complex time series data requiring precise clustering

Developers building applications that require efficient distance measures between time series

✕ Not a fit for

Projects needing real-time streaming analysis of time series data

Applications where the overhead of Python is not acceptable for performance-critical tasks

Cost structure

Pricing

Free Tier

Available

Open source — free to use

Starts at

$0

Model

Flat rate

Enterprise

None

Performance benchmarks

How Fast Is It?

Ecosystem

Relationships

Next step

Get Started with dtaidistance

Step-by-step setup guide with code examples and common gotchas.

View Setup Guide →