Skip to main content

History of astronomy library

Project description

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

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

Current Features

units

  • Define standard positional numeral systems (BasedReal)

  • Working arithmetics on those numbers

  • Set your own precision contexts and algorithms on arithmetical operations

  • 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

How to use

Install the package with pip

pip install kanon

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
cd kanon
pip install -e .

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

Tests

Run tests with tox

# source code tests
tox -e test

# example notebooks tests
tox -e test_notebooks

# mypy
tox -e mypy

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.5.1.tar.gz (94.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: kanon-0.5.1.tar.gz
  • Upload date:
  • Size: 94.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for kanon-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b09aa3b093b83485b70d453f1061cd59a03d9908294366391146896657e18901
MD5 70471d870750db698a3e0f52fde9ccf9
BLAKE2b-256 ce28456b6181472c9e2caa565b80af5c99123b00baee224485b658bea3840a9b

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