History of astronomy library
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kanon-0.6.5.tar.gz
.
File metadata
- Download URL: kanon-0.6.5.tar.gz
- Upload date:
- Size: 46.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.13 Linux/5.13.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd5fe4fefd3d32ee10fcf4c28fe4e2a2f50e2d94bfd6fc948511aadc7ea9fb54 |
|
MD5 | aa835c8f40427d36745d93b2ce5bbb60 |
|
BLAKE2b-256 | 841bca8673f0e51fd4529dda3828e553553a76121a0ae945bea43f440b324a11 |
File details
Details for the file kanon-0.6.5-py3-none-any.whl
.
File metadata
- Download URL: kanon-0.6.5-py3-none-any.whl
- Upload date:
- Size: 52.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.8.13 Linux/5.13.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b220be78d6c68466a7f6352ab1810f25736b61606c2422558c941de3cf06dac4 |
|
MD5 | 548c2ef601dc035982905b74296ffc95 |
|
BLAKE2b-256 | 7255404e27af67b13ec47b473497a24e1b8737479e6da957e0ed9c3456ad7287 |