SunPy is the core package for solar data analysis in Python, providing data structures, coordinate transformations, and visualization tools for solar physics. Current version 7.1.2 (requires Python >=3.12). Released approximately every 3-4 months.
Install & Compatibility
Where this runs
tested against v7.0.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✕ build_error
py 3.11
✕ build_error
✓ 33.6s
py 3.12
✕ build_error
✓ 31.5s
py 3.13
✕ build_error
✓ 32s
py 3.9
✕ build_error
✓ 40.2s
813MB installed
● package 813MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Map is a module, not a class; use sunpy.map.Map for the class
import sunpy.map
Direct import of Map is possible but discouraged due to namespace conflicts with built-in map()
import sunpy.map; smap = sunpy.map.Map(...)
Downloads an AIA 193 Å image from JSOC and displays it
import sunpy.map
import astropy.units as u
from sunpy.net import Fido, attrs as a
# Download an AIA 193 image (requires internet)
result = Fido.search(a.Time('2020-01-01 00:00:00', '2020-01-01 00:00:10'),
a.Instrument.aia, a.Wavelength(193*u.angstrom))
files = Fido.fetch(result)[0]
# Load and plot map
m = sunpy.map.Map(files)
m.plot()
sunpy --version
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.