Skip to main content

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:

Metadata

Release files for skyfield 0.9

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

Source distribution (sdist)

Source distribution for skyfield 0.9
File Size Uploaded Provenance Actions
skyfield-0.9.tar.gz 123.3 kB Without provenance Details for skyfield-0.9.tar.gz

Release files / skyfield-0.9.tar.gz

Download URL skyfield-0.9.tar.gz
Size 123.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f944793cfe63c897252c589ce29e4cc71dbafce1056d657517c02bfeb8e8a72
BLAKE2b-256 checksum
How to use checksums
0afe38a8791237de165125768dc43be726a14bf02c6a24b0098ccee3a40f4ae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for skyfield 0.9

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.9 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