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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for kanon-0.3.2.tar.gz
Algorithm Hash digest
SHA256 fa0cb1c619a8cbd424dbe18a8d881123e87a936f1f5ac49307fdda944704c9d2
MD5 e0dd478f82a7fbd65a9d19bd0012df2b
BLAKE2b-256 4c73eace09dc47a8166cbe8e8e3a1c34655e5e196f3a5e4c6a4be679a3eae6e3

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