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.1.tar.gz (46.0 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.1-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kanon-0.6.1.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.11.0-1028-azure

File hashes

Hashes for kanon-0.6.1.tar.gz
Algorithm Hash digest
SHA256 63e556304429f2d8c09399263c8e4d78f7f1b0fc44a54fa9a203711801fc79e0
MD5 00557bc059e7a3a9a6fd6dc4c3b70e8e
BLAKE2b-256 e72cd0d14cbcff4400bd137a81d2b5336f4fb319b1a10da6867d21e2d48e4860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kanon-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 51.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.11.0-1028-azure

File hashes

Hashes for kanon-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e89476d7fce15b03d156508295100d710e1c528d3b00392357967782c57c2998
MD5 5f4b099f84e7f019896cb09bbb7a05af
BLAKE2b-256 ca41f1137c4b96c3c34b4074119e2e8083044a5aad8eb4eb77d08083fa09232d

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