$npx skillfedfor your agent

datedelta

Like datetime.timedelta, for date arithmetic.

Worth itPyPI Software DevelopmentReleased Jan 2022145.3K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — datedelta-1.4-py3-none-any.whl
v1.4 · released 2022-01-01 · Python >=3.6,<4.0

Yes. This is a stable, production-ready library (Development Status 5) with no security vulnerabilities, zero dependencies, and low install friction. It solves a real problem that datetime.timedelta cannot—calendar-aware arithmetic—and is well-suited for billing, scheduling, and any date math that must respect human calendar conventions. The aging maintenance status is not a blocker for a focused, mature library with no active vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Last release was in 2022 and the repository shows activity as of 2026-01-05, though the package is classified as aging with 1686 days since the last release.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, making this safe for most projects.

last release 2022-01-01 (1686 days) · last repo commit 2026-01-05 · 147 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 145,271 downloads/mo, #11,131 on PyPI

Verify before relying

import datetime
import datedelta

# Add 3 months to a date
result = datetime.date(2025, 4, 22) + 3 * datedelta.MONTH
print(result)  # datetime.date(2025, 7, 22)

# Subtract a year from a leap day
result = datetime.date(2024, 2, 29) - datedelta.YEAR
print(result)  # datetime.date(2023, 3, 1)
  • Whether the package receives active maintenance or is in maintenance-only mode despite recent repository commits
  • Performance characteristics when used with large date ranges or in tight loops
Same gist for agents: .md · .json

What it is and what it does

datedelta is a small library that adds calendar-aware date arithmetic to Python's standard datetime module. Where datetime.timedelta works with fixed day counts, datedelta lets you add or subtract years, months, weeks, and days from dates while respecting the Gregorian calendar's quirks—leap years and variable month lengths. When arithmetic would land on a non-existent date (like February 30th), it rolls forward to the first day of the next month, ensuring consistent and predictable results.

The library is designed for subscription billing, recurring events, and any scenario where you need to add a human-readable period ("3 months", "1 year") to a date and get a sensible result. It provides both simple constants (YEAR, MONTH, WEEK, DAY) for common operations and a flexible datedelta class for arbitrary combinations. The package has no external dependencies and supports Python 3.6 through 3.10.

Use it for

  • Calculate subscription renewal dates that account for leap years and month-end edge cases
  • Add or subtract calendar months/years from dates without losing precision to day-of-month mismatches
  • Generate recurring event schedules that respect calendar boundaries (e.g., monthly billing on the 31st)
  • Handle date arithmetic in financial or legal contexts where calendar precision matters
  • Compute date ranges for reports or periods that span variable-length months or leap years

Worth the install?

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

Worth it

Yes.

This is a stable, production-ready library (Development Status 5) with no security vulnerabilities, zero dependencies, and low install friction. It solves a real problem that datetime.timedelta cannot—calendar-aware arithmetic—and is well-suited for billing, scheduling, and any date math that must respect human calendar conventions. The aging maintenance status is not a blocker for a focused, mature library with no active vulnerabilities.

Install

datedelta on PyPI

Before you install

Low install friction with no runtime dependencies. Last release was in 2022 and the repository shows activity as of 2026-01-05, though the package is classified as aging with 1686 days since the last release.

License in practice

BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, making this safe for most projects.

Quickstart

import datetime
import datedelta

# Add 3 months to a date
result = datetime.date(2025, 4, 22) + 3 * datedelta.MONTH
print(result)  # datetime.date(2025, 7, 22)

# Subtract a year from a leap day
result = datetime.date(2024, 2, 29) - datedelta.YEAR
print(result)  # datetime.date(2023, 3, 1)

Verify before relying

  • Whether the package receives active maintenance or is in maintenance-only mode despite recent repository commits
  • Performance characteristics when used with large date ranges or in tight loops

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.6,<4.0
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 1,686 days since the last release
Last repo commit
First released
Downloads145,271 / month, #11,131 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: datedelta-1.4-py3-none-any.whl

Tags

Capabilities
date arithmetic librarycalendar-aware timedeltaadd months to dategregorian calendar mathsubscription period calculationleap year date handlingmonth and year arithmetic
Topics
date-arithmeticcalendar-math

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 › “date arithmetic library”

  • datedeltadatedelta extends Python's datetime module with calendar-aware date…
  • dateutilsProvides date and time arithmetic operations, including range…
  • lunardateConverts between Gregorian (solar) and Chinese (lunar) calendar…

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

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also delta · tkcalendar · datetime-quarter · lunardate · fiscalyear · convertdate · epiweeks · isoweek · dateutils · workalendar