Skip to main content
Tests Test Coverage Latest release BSD-3 clause license PyPI - Python Version

Astronomia - Quick Guide

Astronomia is a collection of subroutines and applications for calculating the positions of the sun, moon, planets and other celestial objects. The emphasis is on high accuracy over a several thousand year time span. Note that the techniques used are overkill for most calendar applications.

The subroutine library attempts to implement some the techniques described in Astronomical Algorithms, second edition 1998, by Jean Meeus, Willmann-Bell, Inc.

Currently there are no graphical applications apart from some demo CGI interfaces.

Astronomia will work with Python 3.10+.

Documentation

Reference documentation is at http://timcera.bitbucket.io/.

Installation

At the command line:

$ pip install astronomia
# OR
$ conda install -c conda-forge astronomia

Usage

To use Astronomia in a project:

import astronomia

Development

Development is managed on bitbucket at https://bitbucket.org/timcera/astronomia/src/main/ and on github at https://github.com/timcera/astronomia

History

Astronomia is a fork of the Astrolabe library created by Bill McClain. The Astrolabe library is no longer available.

I (Tim Cera) used the Astrolabe library within my tidal analysis package TAPPy. In 2013 I pulled Astrolabe out of TAPPy and forked Astronomia. I have since fixed many bugs and added features. The most important added feature is the ability for most functions to work with array inputs. Bill McClain had dual Python and ‘C’ code, but I focused only on the Python code, updating with newer data and equations as I found them.

Metadata

Release files for astronomia 3.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astronomia 3.0.5
File Size Uploaded
astronomia-3.0.5.tar.gz 697.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for astronomia 3.0.5
File Interpreter ABI Platform
astronomia-3.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / astronomia-3.0.5.tar.gz

Download URL astronomia-3.0.5.tar.gz
Size 697.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c6bb28769848bb2f20b1eb92654c440b673dec69db90458386fdc9264840b990
BLAKE2b-256 checksum
How to use checksums
4681c4c1daa71cc40d50bc4e788ee962f0e5d81c0f55719ed22be03febc9730c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

Release files / astronomia-3.0.5-py3-none-any.whl

Download URL astronomia-3.0.5-py3-none-any.whl
Size 677.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b906e8f99544f3e9f4f1fbe1ef9ce745f66e07e8ce48dd237e5e0b2bd96610f6
BLAKE2b-256 checksum
How to use checksums
275aca3b062c69da835736e7af0f2396d0afbff7070bc90c796db5ccfcca6fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.5 This release

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.0

2 release files

2.0.1

2 release files

2.0.0

1 release file

1.2.12

1 release file

1.2.11

1 release file

1.2.10

1 release file

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.1.1.1

1 release file

1.1.1

1 release file

0.4.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page