Skip to main content
GitHub Pipeline Status Coverage Docs status Kanon Pypi Python 3.8 Powered by Astropy Badge https://zenodo.org/badge/344498058.svg

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)

Source distribution for kanon 0.6.5
File Size Uploaded
kanon-0.6.5.tar.gz 46.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kanon 0.6.5
File Interpreter ABI Platform
kanon-0.6.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.6.5 This release

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.2

1 release file

0.0.0

2 release files

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