Skip to main content

Convert from the current or given Gregorian date to Absalom Reckoning from Paizo's Pathfinder RPG

Project description

Absalom Reckoning Converter

Python Version PyPI version License Downloads Evan Young 2025

Copyright Note

This library uses trademarks and/or copyrights owned by Paizo Inc., used under Paizo's Fan Content Policy (paizo.com/licenses/fancontent). This library is not published, endorsed, or specifically approved by Paizo. For more information about Paizo Inc. and Paizo products, visit paizo.com.

Project Description

The Absalom Reckoning is a calendar used in the Pathfinder Roleplaying Game. A quick little project that I am making into my first deployed package on pypi. It converts standard dates into the Absalom Reckoning Calendar used in the Pathfinder Roleplaying Game.

ArDate Attributes

  • month: Full month name in AR calendar (e.g. "Erastus")
  • monthShort: Abbreviated month name (e.g. "Era")
  • commonMonth: Common folk month name (e.g. "Fletch")
  • day: Day of the month (1-31)
  • year: Year in AR calendar
  • weekday: Full weekday name (e.g. "Moonday")
  • weekdayShort: Abbreviated weekday name (e.g. "Moon")
  • weekdayNum: Day of week number (1-7, starts with Moonday)
  • monthNum: Month number (1-12)
  • season: Current season (Winter, Spring, Summer, Fall)

Methods

  • convert(): Converts a datetime object into an ArDate object
  • short_date(): Returns date in format "Era 10, 4723"
  • long_date(): Returns date in format "Erastus 10, 4723"
  • weekday_date(): Returns date in format "Moonday Erastus 10, 4723"
  • common_long_month(): Returns date with common month in format "Fletch 10, 4723"
  • month_season(): Returns current season as string

Installation

pip install arconverter

Or with uv:

uv tool install arconverter

Usage

from datetime import datetime
from arconverter import convert

# Convert a date to Absalom Reckoning
ar_date = convert(datetime(2023, 7, 10))

# Print the date in various formats
print(ar_date.long_date())        # "Erastus 10, 4723"
print(ar_date.short_date())       # "Era 10, 4723"
print(ar_date.weekday_date())     # "Moonday Erastus 10, 4723"
print(ar_date.common_long_month())# "Fletch 10, 4723"
print(ar_date.month_season())     # "Summer"

Ω

Development (with uv)

# Create and sync a dev environment
uv sync --all-extras --dev

# Run tests
uv run pytest

# Lint
uv run ruff check .

# Run the CLI
uv run arconverter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

absalomreckoningconverter-1.0.1.tar.gz (108.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

absalomreckoningconverter-1.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file absalomreckoningconverter-1.0.1.tar.gz.

File metadata

File hashes

Hashes for absalomreckoningconverter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 692947e6f4f7f3c16b3e2ff5f45a78e1e2df430ad243f19785224b67e0ca657f
MD5 4d6cf2739b10755e67e72be421e6c796
BLAKE2b-256 8abac129f6914f09d8f9e6d01953bb50f8559c9783adbd38936a500da28cb9f8

See more details on using hashes here.

File details

Details for the file absalomreckoningconverter-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for absalomreckoningconverter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04aa528d8c0109cd03d746d875a32ecca87f482807dc71f5baed1c4531107eb0
MD5 f3b999b9d5fe422a53b43ec8a1457ffd
BLAKE2b-256 95eefb01426e9fc5bcacb17da68a1e1dd9f4f79928442572e8508487e6db54bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page