Skip to main content

Historical chronology tools (indiction, calendar systems, etc.)

Project description

Computus

A small Python library for historical chronology.

Author

Ivan Debono

Features

  • Indiction calculation (Anno Domini and Byzantine Anno Mundi)
  • Roman numeral conversion

Installation

Using pip

pip install computus

Using uv

uv add computus

Or:

uv pip install computus

Usage (Python)

from computus import indiction, arabic_to_roman

i = indiction(525)
print(i)                     # 3
print(arabic_to_roman(i))   # III

Command Line Usage

After installing the package, you can run it directly from the terminal.

Basic usage

computus 525

Example output:

Indiction: 3 (III)

Specify calendar system

computus 525 --calendar AD
computus 1000 --calendar AM

Help

computus --help

Description

computus provides simple tools for working with historical dating systems, inspired by the chronological methods of Late Antiquity and the Middle Ages. It currently supports:

  • Calculation of the indiction cycle
  • Conversion of integers to Roman numerals

Roadmap

Future features will include:

  • Julian ↔ Gregorian calendar conversion
  • Parsing historical date formats
  • Support for additional era systems

See CHANGELOG.md for release history.

License

PolyForm Noncommercial License 1.0.0

Copyright (c) 2026 Ivan Debono

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

computus-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

computus-1.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: computus-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for computus-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5d8682dece8b8a4d758dc7dd7ac65a3219094d6de33411c05b74ff72151f59af
MD5 eef2d7bb380a0ab10e3e397341f2bc0c
BLAKE2b-256 b8ceb9b575e819e1321c1c553a16f76df5836f440dd92d8ebca1bab0c184d329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: computus-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for computus-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be7b0dfe4582431fbb91c1ab2ca739fe66658bd4e5fdc83946e5d809da77c111
MD5 d95326f74e6c221eb620ea812c5007bd
BLAKE2b-256 44b038eec3d26e9d05ff7b07ea55f14a0f882668a356c62a8ef94e1ddeb483ef

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