Skip to main content

Litcal-roman

Roman Catholic liturgical calendar (Ordinary Form) computation in pure Python.

Given a date and a calendar configuration, litcal-roman returns the fully resolved liturgical day: the winning celebration after precedence resolution, any displaced celebrations, the liturgical season and week, vestment color, psalter week, and lectionary cycles.

Precedence rules follow the General Norms for the Liturgical Year and the Calendar) (GNLYC), with transfer rules applied per region. Currently only support US region.

Installation

# pip

pip install litcal-roman

# uv

uv add litcal-roman

Requires Python 3.12+.

Quick start

from datetime import date
from litcal_roman import get_liturgical_day, CalendarConfig

config = CalendarConfig.us()
day = get_liturgical_day(date(2026, 3, 29), config)

print(day.celebration.name)   # "Palm Sunday of the Passion of the Lord"
print(day.season)             # Season.LENT
print(day.celebration.color)  # LiturgicalColor.RED
print(day.sunday_cycle)       # SundayCycle.B

When a temporale celebration is displaced by a higher-ranked sanctorale day, it appears in day.displaced:

day = get_liturgical_day(date(2026, 6, 22), config)  # Saint Paulinus of Nola, Bishop / Saints John Fisher, Bishop, and Thomas More, Martyrs / 12th Sunday OT
print(day.celebration.name)    # "Saint Paulinus of Nola, Bishop"
print(day.displaced[0].name)   # "Saints John Fisher, Bishop, and Thomas More, Martyrs"
print(day.displaced[1].name)   # "Twelfth Sunday in Ordinary Time"

CalendarConfig

CalendarConfig.universal()   # No transfers, no national propers
CalendarConfig.us()          # USCCB propers + standard US transfers

The US configuration transfers Ascension to the 7th Sunday of Easter, Epiphany to the nearest Sunday, and Corpus Christi to the Sunday after Trinity Sunday. These can be overridden individually:

config = CalendarConfig(
    region="us",
    transfer_ascension=False,   # keep Ascension on Thursday
    transfer_epiphany=True,
    transfer_corpus_christi=True,
)

LiturgicalDay fields

Field Type Description
date date Civil date
season Season Liturgical season
week int Week within the season
weekday int ISO weekday (1=Mon, 7=Sun)
psalter_week int Week of the four-week Psalter (1–4)
celebration Celebration Winning celebration after precedence resolution
displaced tuple[Celebration, ...] Celebrations that lost precedence, descending by rank
scripture_cycle ScriptureCycle Year I or II (weekday lectionary)
sunday_cycle SundayCycle Cycle A, B, or C (Sunday lectionary)
region str Region key used to produce this day

Types

All enums and dataclasses are available under litcal_roman.models:

from litcal_roman import models

models.Season.LENT
models.Rank.SOLEMNITY
models.LiturgicalColor.WHITE
models.SundayCycle.A
models.ScriptureCycle.YEAR_I

Or import directly:

from litcal_roman.models import Season, Rank, LiturgicalColor

Regions

Key Description
"universal" General Roman Calendar, no transfers
"us" USCCB propers, US transfer rules

Changelog

Changelog

License

BSD-3-Clause

Metadata

Release files for litcal-roman 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for litcal-roman 0.1.0
File Size Uploaded Provenance Actions
litcal_roman-0.1.0.tar.gz 23.1 kB Without provenance Details for litcal_roman-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for litcal-roman 0.1.0
File Interpreter ABI Platform Actions
litcal_roman-0.1.0-py3-none-any.whl Python 3 none any Details for litcal_roman-0.1.0-py3-none-any.whl

Total release size: 49.3 kB

Release files / litcal_roman-0.1.0.tar.gz

Download URL litcal_roman-0.1.0.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab0cc4d87d308c3f5b89fd5be3c3eee5474c27bc8a853bfa32cefff62dcea883
BLAKE2b-256 checksum
How to use checksums
2640fde3c0ebff8b14fc8f28de48872c175cd1f2431509adb013175d99c26c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / litcal_roman-0.1.0-py3-none-any.whl

Download URL litcal_roman-0.1.0-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c3a3e638f529718d7cf9ce77ead4b9b29d216ab9cb92c9ecc7740b5c285a4f8
BLAKE2b-256 checksum
How to use checksums
695333e4e4dc138629edede2f4ab2774b54ea4f9e9aa005bdc1bae6b2c68b03c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for litcal-roman 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page