Skip to main content

PyMeeus

Library of astronomical algorithms in Python.

PyMeeus is a Python implementation of the astronomical algorithms described in the classical book ‘Astronomical Algorithms, 2nd Edition, Willmann-Bell Inc. (1998)’ by Jean Meeus.

There are great astronomical libraries out there. For instance, if you’re looking for high precision and speed you should take a look at libnova. For a set of python modules aimed at professional astronomers, you should look at Astropy. On the other hand, the advantages of PyMeeus are its simplicity, ease of use, ease of reading, ease of installation (it has the minimum amount of dependencies) and abundant documentation.

Installation

The easiest way of installing PyMeeus is using pip:

pip install pymeeus

Or, for a per-user installation:

pip install --user pymeeus

If you prefer Python3, you can use:

pip3 install --user pymeeus

Meta

Author: Dagoberto Salazar

Distributed under the GNU Lesser General Public License v3 (LGPLv3). See LICENSE.txt and COPYING.LESSER for more information.

Documentation: https://pymeeus.readthedocs.io/en/latest/

GitHub: https://github.com/architest/pymeeus

If you have Sphinx installed, you can generate your own, latest documentation going to directory ‘docs’ and issuing:

make html

Then the HTML documentation pages can be found in ‘build/html’.

Contributing

The preferred method to contribute is through forking and pull requests:

  1. Fork it (https://github.com/architest/pymeeus/fork)

  2. Create your feature branch (git checkout -b feature/fooBar)

  3. Commit your changes (git commit -am 'Add some fooBar')

  4. Push to the branch (git push origin feature/fooBar)

  5. Create a new Pull Request

Please bear in mind that PyMeeus follows the PEP8 style guide for Python code (PEP8). We suggest you install and use a linter like Flake8 before contributing.

Additionally, PyMeeus makes heavy use of automatic tests. As a general rule, every function or method added must have a corresponding test in the proper place in tests directory.

Finally, documentation is also a big thing here. Add proper and abundant documentation to your new code. This also includes in-line comments!!!.

Contributors

  • Neil Freeman - Fixed undefined variable in Epoch.tt2ut

  • molsen234 - Fixed bug when using fractional seconds, minutes, hours or days

  • Sebastian Veigl - Added functionality for Jupiter’s moons

  • Sophie Scholz - Added functionality for Jupiter’s moons

  • Vittorio Serra - Added functionality for Jupiter’s moons

  • Michael Lutz - Added functionality for Jupiter’s moons

  • Ben Dilday - Added __hash__() method to class Epoch

What’s new

  • 0.5.2

    • Added methods to compute the Moon’s longitude of ascending node and perigee

  • 0.5.1

    • Changes in the organization of the documentation

  • 0.5.0

    • Added Moon class and position() methods.

  • 0.4.3

    • Added method ring_parameters() to Saturn class.

  • 0.4.2

    • Added method __hash__() to Epoch. Now Epoch objects can be used as keys in a dictionary.

  • 0.4.1

    • Added funtionality to compute the positions of Jupiter’s Galilean moons

  • 0.4.0

    • Added methods to compute Saturn’s ring inclination and longitude of ascending node

  • 0.3.13

    • Additional encoding changes

  • 0.3.12

    • Deleted encoding keyword from setup.py, which was giving problems

  • 0.3.11

    • Added encoding specification to setup.py

  • 0.3.10

    • Fixed characters with the wrong encoding

  • 0.3.9

    • Relaxed requirements, added contributor molsen234, and fixed format problems showed by flake8

  • 0.3.8

    • Fixed undefined variable in Epoch.tt2ut

  • 0.3.7

    • Fix bug when using fractional seconds, minutes, hours or days, plus documentation improvements

  • 0.3.6

    • Add method to compute rising and setting times of the Sun

  • 0.3.5

    • Add method magnitude() to planet classes

  • 0.3.4

    • Add method to compute the parallax correction to Earth class

  • 0.3.3

    • Add methods to compute the passage through the nodes

  • 0.3.2

    • Add methods to compute the perihelion and aphelion of all planets

  • 0.3.1

    • Fix errors in the elongation computation, add tests and examples of use of methods geocentric_position(), and tests and examples for Pluto class

  • 0.3.0

    • Added Pluto class

Metadata

Release files for PyMeeus 0.5.2

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

Source distribution (sdist)

Source distribution for PyMeeus 0.5.2
File Size Uploaded Provenance Actions
PyMeeus-0.5.2.tar.gz 5.3 MB Without provenance Details for PyMeeus-0.5.2.tar.gz

Release files / PyMeeus-0.5.2.tar.gz

Download URL PyMeeus-0.5.2.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
906fbf2f9b0833b4ae5a2bee6872060ec7b28c14549eaf0c83accf3f4b388330
BLAKE2b-256 checksum
How to use checksums
1677d3eeb32ac6c0fa39930948cd08fedf329487c6832e6941f017db6b07e564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

Security for PyMeeus 0.5.2

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.

Release history Release notifications | RSS feed

This release

0.5.2 This release

1 release file No provenance

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