Skip to main content

History of astronomy library

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kanon-0.6.4.tar.gz (46.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kanon-0.6.4-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

Details for the file kanon-0.6.4.tar.gz.

File metadata

  • Download URL: kanon-0.6.4.tar.gz
  • Upload date:
  • Size: 46.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.13.0-1029-azure

File hashes

Hashes for kanon-0.6.4.tar.gz
Algorithm Hash digest
SHA256 3c07024d0f347013ced846817b722401ac464b14824d2ebfc98ae9e81e9a7953
MD5 8d159b6d0284efabf8cb4379ad359c8f
BLAKE2b-256 36e7d35dbc0cd9e003c9e2771043b44f99657b796b2d43f8459e6a55a7945c48

See more details on using hashes here.

File details

Details for the file kanon-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: kanon-0.6.4-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.12 Linux/5.13.0-1029-azure

File hashes

Hashes for kanon-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d54891e2e9baa9578524cfe9f1975774deb69509da0adff783e532ed8204d8d7
MD5 c934c9d3eacd82e7cbe49e37f088326b
BLAKE2b-256 fc020611fb1ba61f68d0ba7d9896c35feb4cc82ccc3b6fd7e7aec528f9af43e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page