Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



12 Commits

Repository files navigation


DTWpy is a open source Python3 library for fast and parallel computation of Dynamic Time Warping distances and alignments of time series.

This project is a standalone version of the mlpy implementation for Dynamic Time Warping.

Building on top of that implementation, wrapper functions are provided for ease of use.

The package includes a easy to use plotting library for pairwise time series alignment and cost visualization.


The package requires Python >=3.3 since it uses the multiprocessing package to release the GIL.

The implementation also requires Cython so if you do not have it installed you will need to run

pip install Cython

To compile the dependencies you will have to run the following command

python build_ext --inplace


A demo showcasing the behavior of the different DTW functions and some time benchmarks is shown here