$npx skillfedfor your agent

isoduration

Operations with ISO 8601 durations

With conditionsPyPI Python ModulesReleased Nov 202050.6M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — isoduration-20.11.0-py3-none-any.whl
v20.11.0 · released 2020-11-01 · Python >=3.7 · 1 runtime deps: arrow

Yes, but with caution. The library solves a real gap—timedelta cannot represent years or months—and has low install friction. However, it is abandoned and will not receive updates. Install it only if you need ISO 8601 duration parsing with year/month support and are comfortable maintaining a frozen dependency. For new projects, verify whether an actively maintained alternative exists or whether you can work around the limitation with timedelta.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7 or later.
  • Low install friction with a single runtime dependency (arrow).
  • However, the package is abandoned—last release was 2020-11-01 and no commits since 2021-11-26.

License · maintenance · safety

permissive license (permissive) — Licensed under ISC (permissive), so you can use it freely in commercial and private projects without restriction, but the abandoned status means you assume all maintenance risk.

last release 2020-11-01 (2112 days) · last repo commit 2021-11-26 · 31 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 50,649,753 downloads/mo, #574 on PyPI

Verify before relying

pip install isoduration

from isoduration import parse_duration, format_duration
from datetime import datetime

duration = parse_duration("P3Y6M4DT12H30M5S")
result = datetime(2020, 3, 15) + duration
formatted = format_duration(duration)
  • Whether arrow dependency is actively maintained and whether its updates could affect isoduration compatibility.
  • Real-world performance and correctness on edge cases not covered in the description excerpt.
Same gist for agents: .md · .json

What it is and what it does

isoduration is a Python library for parsing, manipulating, and formatting ISO 8601 duration strings. Unlike the standard library's timedelta, which cannot represent durations with years or months, isoduration provides a Duration type that splits durations into date and time components (years, months, days, hours, minutes, seconds), each stored as a Decimal for precision. You can parse ISO strings into Duration objects, perform arithmetic by adding or subtracting them from Python datetimes, compare durations, negate them, and format them back to ISO notation.

The package depends on arrow for datetime handling and is designed to address limitations in the older isodate library by using proper parsing instead of regular expressions and providing a more uniform API. However, the package has been abandoned since late 2021 with no further development, meaning it will not receive updates for new Python versions, security issues, or bug fixes.

Use it for

  • Parse ISO 8601 duration strings from APIs or configuration files and apply them to datetime calculations.
  • Calculate future or past dates by adding/subtracting durations that include years or months (impossible with timedelta).
  • Store durations as dictionary keys or set members using the hashable Duration type.
  • Format Duration objects back to ISO 8601 strings for API responses or data export.
  • Handle scheduling or recurrence logic that requires year/month granularity beyond what timedelta supports.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, but with caution.

The library solves a real gap—timedelta cannot represent years or months—and has low install friction. However, it is abandoned and will not receive updates. Install it only if you need ISO 8601 duration parsing with year/month support and are comfortable maintaining a frozen dependency. For new projects, verify whether an actively maintained alternative exists or whether you can work around the limitation with timedelta.

Install

isoduration on PyPI

Before you install

Low install friction with a single runtime dependency (arrow). However, the package is abandoned—last release was 2020-11-01 and no commits since 2021-11-26. It will not receive bug fixes or security updates, though no vulnerabilities are currently known.

Requires Python 3.7 or later.

License in practice

Licensed under ISC (permissive), so you can use it freely in commercial and private projects without restriction, but the abandoned status means you assume all maintenance risk.

Quickstart

pip install isoduration

from isoduration import parse_duration, format_duration
from datetime import datetime

duration = parse_duration("P3Y6M4DT12H30M5S")
result = datetime(2020, 3, 15) + duration
formatted = format_duration(duration)

Verify before relying

  • Whether arrow dependency is actively maintained and whether its updates could affect isoduration compatibility.
  • Real-world performance and correctness on edge cases not covered in the description excerpt.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
arrow
MaintenanceAbandoned 2,112 days since the last release
Last repo commit
First released
Downloads50,649,753 / month, #574 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: ISC License (ISCL)Operating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Evidence: isoduration-20.11.0-py3-none-any.whl

Tags

Capabilities
ISO 8601 duration parsingparse duration stringsiso8601 duration libraryduration arithmetic pythonformat iso durationtimedelta alternative years months
Topics
iso8601datetime-handlingabandoned
PyPI keywords
datetimedatetimedurationduration-parsingduration-stringiso8601iso8601-duration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “iso8601 duration library”

  • isodurationParses and manipulates ISO 8601 duration strings (like…
  • metomi-isodatetimeParses and manipulates ISO 8601 date-time strings according to the…
  • aniso8601Parses ISO 8601 date, time, datetime, duration, and interval strings…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also isodate · metomi-isodatetime · delta · aniso8601 · iso8601 · ciso8601 · isoweek · backports-datetime-fromisoformat · pytimeparse2 · parse