Skip to main content

History of astronomy library

Project description

Gitlab Pipeline Status Coverage Docs status Python 3.8 Powered by Astropy Badge

Kanon is the History of Astronomy Python package and tools. Still in early development.

Current Features

~kanon.units

  • Define standard positional numeral systems (through ~kanon.units.radices.BasedReal)

  • Working arithmetics on those numbers

  • Specify custom precision and algorithms on arithmetical operations and keep a history of it

~kanon.tables

  • Build or import ancient astronomical tables

  • Perform basic operations on those tables

~kanon.calendars

  • Define new calendar types

  • Convert dates between calendars

How to use

Clone the repository then install the package

git clone git@gitlab.obspm.fr:lgauffier/kanon.git
pip install .

For now kanon features are only available through its Python library

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 in editable mode

git clone git@gitlab.obspm.fr:lgauffier/kanon.git
pip install -e .

The changes you make in the code are reflected on your Python environment

Tests

Run tests with tox

tox -e test

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

kanonpy-0.0.1.tar.gz (58.9 kB view hashes)

Uploaded Source

Supported by

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