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

Uploaded Source

File details

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

File metadata

  • Download URL: kanon-0.5.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a3b9d0f0b73154191a7d252e1823f8a6b399ef5b421adb67974145cf897b8ac2
MD5 5472a5a78227c9dbc0bbd299d6fee405
BLAKE2b-256 d2e077c5656715ec8dafcdce6b5d587121e997298c53486e9d9e9cca22737462

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