skyfield 1.53


pip install skyfield

  Latest version

Released: Apr 07, 2025

Project Links

Meta
Author: Brandon Rhodes

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • Education
  • Science/Research

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 2.7
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Scientific/Engineering :: Astronomy

Skyfield is a pure-Python astronomy package that is compatible with both Python 2 and 3 and makes it easy to generate high precision research-grade positions for planets and Earth satellites.

from skyfield.api import load

planets = load('de421.bsp')
earth, mars = planets['earth'], planets['mars']

ts = load.timescale()
t = ts.now()
position = earth.at(t).observe(mars)
ra, dec, distance = position.radec()

print(ra)
print(dec)
print(distance)

The result:

10h 47m 56.24s
+09deg 03' 23.1"
2.33251 au

Skyfield’s only binary dependency is NumPy. Once that is available, Skyfield can usually be installed with:

pip install skyfield

Here are the essential project links:

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
certifi (>=2017.4.17)
jplephem (>=2.13)
numpy
sgp4 (>=2.13)