Is there an easy way to convert ISO 8601 duration to timedelta? May 22, 2023 by Tarik I found isodate library to do exactly what I want isodate.parse_duration('PT1H5M26S') You can read the source code for the function here