Skip to main content

Cordial (lxcor-cordial)

Cordial is a calendar and clock built on two numbers, 364 and 52: a year of 364 days (13 months of 28 days, 52 weeks of 7), a day of 26 hours of 52 minutes of 52 seconds, and a circle of 364 grau (a quarter circle is 91). A Cordial day begins at noon; the year begins at noon on the date of the March equinox, and the days left after the 364th (one or two, as the sky dictates) are the Void Days. Years are counted from Adam's birth (Anno Adami, AA): the year that began in March 2026 is 6030 AA.

This package is the pure core: the date, time, angle, place and sky classes, the Julian Day link and the converters to the Gregorian system. It needs only the Python standard library (3.9+) and ships its one data file, the table of March equinoxes.

pip install lxcor-cordial
from cordial import GregorianDate, CordialDate, CordialJulian

GregorianDate(2026, 11, 13).to_cordial_date().to_date_string()   # 'Sagittarius 15, 6030'  (the day that begins at noon on that date)
CordialDate(2027, 9, 15).to_gregorian_date()                      # datetime.date(2026, 11, 13); the year argument is the internal index (AA 6030 - 4003)
CordialJulian.cordial_to_jdn(2027, 9, 15)                         # 2461358: a Cordial day is a Julian day
from cordial import cordial_converter as converter
converter.gregorian_date_to_cordial(2026, 11, 13)                 # rows of (label, value), ready to show; raises ConverterError with a message

Scope and honesty about the sky

  • Dates are computed from the packaged equinox table (src/cordial/data/equinox_jd.json, JPL DE421): Cordial years 2020 to 2052, that is Gregorian March 20, 2019 to March 18, 2052. Outside it conversions raise an error (ValueError / ConverterError). The number of Void Days beyond the table is only a forecast by the Gregorian leap-year rule, which differs from the sky in Cordial 2044, 2045, 2048, 2049 and 2052.
  • tools/build_equinox_jd.py regenerates the table (needs skyfield); extend it and release a new version to widen the range.
  • Positions of the Sun, Moon and stars, maps and charts are not in this package: they need an ephemeris and plotting libraries and live in the Cordial web site (https://cordial.lxcor.com), which uses this core.
  • Every Cordial day has a Julian Day Number, computed directly with no other calendar as a step, and the tests check each day from 2020 to 2052 against the Julian Day Number of its Gregorian date (an external witness).

Tests

PYTHONPATH=src python -m unittest discover -s tests

Licence

Apache License 2.0 (see LICENSE), with attribution: keep the NOTICE file with any redistribution. Commercial use is allowed. Copyright 2015-2026 Light Cross Holdings Corporation. All Rights Reserved.

Metadata

Release files for lxcor-cordial 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 lxcor-cordial 0.1.0
File Size Uploaded Provenance Actions
lxcor_cordial-0.1.0.tar.gz 31.5 kB Without provenance Details for lxcor_cordial-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lxcor-cordial 0.1.0
File Interpreter ABI Platform Actions
lxcor_cordial-0.1.0-py3-none-any.whl Python 3 none any Details for lxcor_cordial-0.1.0-py3-none-any.whl

Total release size: 64.7 kB

Release files / lxcor_cordial-0.1.0.tar.gz

Download URL lxcor_cordial-0.1.0.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6411142e92af75be9020bd6bd4419fdf044f296a47ab5d0b9ba1a0d6f4f73ee8
BLAKE2b-256 checksum
How to use checksums
a5e9072a2efc905ae42646a35e8fef1b66db0f7fd6d7aece6060410f10323078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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

Download URL lxcor_cordial-0.1.0-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af517030b5600fa330a724f8939764edf10e6c2be6827dcb6662171fc79d7044
BLAKE2b-256 checksum
How to use checksums
adce80061e51d6ac1325e8803452cb573d6d953cf04c17f8dc8a04413d36a96d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for lxcor-cordial 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