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 kanonpy
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
Metadata
Release files for kanonpy 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kanonpy-0.3.1.tar.gz | 133.4 kB | Without provenance | Details for kanonpy-0.3.1.tar.gz |
Release files / kanonpy-0.3.1.tar.gz
| Download URL | kanonpy-0.3.1.tar.gz |
|---|---|
| Size | 133.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f41600c689ed88caf8ee5b1f0ea2dc5b754d8b50bed0691e43cd0d009c58765
|
|
BLAKE2b-256 checksum How to use checksums |
0ac6ec2c269a734460eb739ec0e9d00ba7728b942bdc1fcfa32519ae7f332a56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.7
|
Security for kanonpy 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.