Kanon is the History of Astronomy Python package and tools.
Current Features
units
Define standard positional numeral systems with standard arithmetics (BasedReal)
Set your own precision contexts and algorithms on arithmetical operations (PrecisionContext)
Keep track of all operations
tables
Build or import ancient astronomical tables
Perform arithmetical and statistical operations
Support for BasedReal values
calendars
Define new calendar types
Date conversions
models
Collection of mathematical models used for all kinds of geocentric astronomical tables
How to use
Install the package with pip
pip install kanon
Import Kanon and begin trying all its features
import kanon.units as u
a = u.Sexagesimal(1,2,3)
b = u.Sexagesimal(2,1,59)
a + b
# 3,4,2 ;
Development
To start developing on this project you need to install the package with poetry (Installing Poetry <https://python-poetry.org/docs/>)
git clone https://github.com/legau/kanon.git
cd kanon
poetry install
The changes you make in the code are reflected on your Python environment.
Activate pre-commit checks :
pre-commit install
Tests
Run tests with tox
# source code tests
tox -e test
# example notebooks tests
tox -e test_notebooks
# linting
pre-commit run --all-files
Metadata
Release files for kanon 0.6.5
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 |
|---|---|---|---|---|
| kanon-0.6.5.tar.gz | 46.6 kB | Without provenance | Details for kanon-0.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kanon-0.6.5-py3-none-any.whl | Python 3 | none | any | Details for kanon-0.6.5-py3-none-any.whl |
Total release size: 98.7 kB
Release files / kanon-0.6.5.tar.gz
| Download URL | kanon-0.6.5.tar.gz |
|---|---|
| Size | 46.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd5fe4fefd3d32ee10fcf4c28fe4e2a2f50e2d94bfd6fc948511aadc7ea9fb54
|
|
BLAKE2b-256 checksum How to use checksums |
841bca8673f0e51fd4529dda3828e553553a76121a0ae945bea43f440b324a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.13 Linux/5.13.0-1031-azure
|
Release files / kanon-0.6.5-py3-none-any.whl
| Download URL | kanon-0.6.5-py3-none-any.whl |
|---|---|
| Size | 52.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b220be78d6c68466a7f6352ab1810f25736b61606c2422558c941de3cf06dac4
|
|
BLAKE2b-256 checksum How to use checksums |
7255404e27af67b13ec47b473497a24e1b8737479e6da957e0ed9c3456ad7287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.13 Linux/5.13.0-1031-azure
|
Security for kanon 0.6.5
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.