# python-pendulum/pendulum

Python datetimes made easy

Repository: https://github.com/python-pendulum/pendulum
Canonical: https://ross.abutalabs.com/products/pendulum
Homepage: https://pendulum.eustace.io
Language: Python
License: MIT
License Family: permissive
Topics: python, datetime, date, time, python3, timezones
Last push: 2026-08-20T13:03:52+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 36, longevity 100
- inputs: {"age_days": 3719, "days_push": 13, "days_rel": 215, "gap_med": 285, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6673, forks 445 (observed 2026-08-28T04:09:47.543184+00:00)

## What it is
Pendulum is a Python library that provides a cleaner, more intuitive API for working with dates, times, and timezones as a drop-in replacement for the standard datetime class. It offers timezone-aware datetimes by default, easy arithmetic, and human-readable duration formatting.

## Use cases
- work with datetimes and timezones in python
- convert timestamps between timezones
- format durations in human-readable words
- handle daylight saving time transitions correctly
- replace python datetime with a better api
- add or subtract days and weeks from dates

## When to choose
- you need timezone-aware datetimes with correct DST handling
- you want a drop-in replacement for datetime with a friendlier API
- you need human-readable diffs like '2 minutes ago'

## When to avoid
- you only need basic datetime features already covered by the standard library
- your code passes datetimes to libraries that check types with type(), like sqlite3 or PyMySQL

## Facets
- artifact type: library
- maturity: active
- function: date-time, internationalization
- domain: developer-tools, cross-platform
- platform: python, cross-platform
- tags: datetime, timezone, human-readable-durations, drop-in-replacement

## Member repositories
- python-pendulum/pendulum (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:47.543184+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:43:01.380092+00:00, confidence not recorded.
  - readme: https://github.com/python-pendulum/pendulum (fetched 2026-08-28T04:09:47.543184+00:00, sha bb7b10658f76)
  - homepage: https://pendulum.eustace.io (fetched 2026-08-29T08:39:12.793202+00:00, sha 73c814e6a6a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
