{"library":"monthdelta","title":"monthdelta","description":"A Python library for date computations involving months, providing MonthDelta and MonthDate classes. Current version 0.9.1, last released in 2013. No active maintenance; may have compatibility issues with newer Python versions.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install monthdelta"],"cli":null},"imports":["from monthdelta import MonthDelta","from monthdelta import MonthDate"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from monthdelta import MonthDelta, MonthDate\nfrom datetime import date, datetime\n\n# Add one month to a date\nstart = date(2020, 1, 31)\nresult = start + MonthDelta(1)\nprint(result)  # 2020-02-29 (end-of-month aware)\n\n# Difference in months between dates\nd1 = date(2020, 1, 15)\nd2 = date(2020, 3, 15)\nmd = MonthDelta(d2 - d1)  # warning: may be inaccurate for uneven months\nprint(md.months)  # 2\n\n# Use MonthDate for month components\ndt = MonthDate(2020, 2, 29)\nprint(dt)  # 2020-02-29","lang":"python","description":"Basic usage of MonthDelta and MonthDate for month-based date arithmetic.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}