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

Uploaded Source

File details

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

File metadata

  • Download URL: kanon-0.5.2.tar.gz
  • Upload date:
  • Size: 94.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 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.2.tar.gz
Algorithm Hash digest
SHA256 77ef77951c3588b1bc54cc5571fd35952ee16197d8d1d1325bde5204056fdb17
MD5 7bb95854342ca0fe7dd8aa15729c5f43
BLAKE2b-256 6f6bb5e10b415bc2d09b181b7c54ecb0b2f684a5f463b1c3f3efe9367ca0d22c

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