{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"}],"enrichment":{"capability":"datedelta extends Python's datetime module with calendar-aware date arithmetic for years, months, weeks, and days, handling leap years and variable month lengths correctly.","skillfed_tags":["date-arithmetic","calendar-math"],"use_cases":["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"],"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\u2014leap 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.\n\nThe 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.","worth_installing":"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\u2014calendar-aware arithmetic\u2014and 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."},"id":"datedelta","links":{"html":"https://skillfed.io/packages/datedelta","md":"https://skillfed.io/packages/datedelta.md","pypi":"https://pypi.org/project/datedelta/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-01-01","license_spdx":null,"license_treatment":"permissive","name":"datedelta","python_support":"supports_current","summary":"Like datetime.timedelta, for date arithmetic."},"popularity":{"monthly_downloads":145271,"position":11131,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4"}
