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.pyregenerates the table (needsskyfield); 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lxcor_cordial-0.1.1.tar.gz | 31.5 kB | Without provenance | Details for lxcor_cordial-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lxcor_cordial-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lxcor_cordial-0.1.1-py3-none-any.whl |
Total release size: 64.7 kB
Release files / lxcor_cordial-0.1.1.tar.gz
| Download URL | lxcor_cordial-0.1.1.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9683f448ac73d13469e85f39e5506c64aecd2d221a3a8cdcae8bc88f2bb169a
|
|
BLAKE2b-256 checksum How to use checksums |
c2be13030f546f1c7a202942922ae0fee011602e636056762152e77576311d7d
|
| 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.1-py3-none-any.whl
| Download URL | lxcor_cordial-0.1.1-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1005d55b64ceaa41c9e19526125cc10332ea23af50fbd676a1aa01f6567fda38
|
|
BLAKE2b-256 checksum How to use checksums |
7c6f1c5dd60de7640c80dc86f601a9213194fcc1afc8ece5c7daf2c00316ccd0
|
| 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.1
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.