Registry / data / sunpy

sunpy

JSON →
library7.1.2pypypi✓ verified 35d ago

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.

dataai-ml
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
musl
glibc
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
Debug
Known footguns
breakingsunpy 7.x requires Python >=3.12; dropped support for Python 3.10 and 3.11.
deprecatedsunpy.coordinates.frames.HeliographicStonyhurst no longer accepts 'deg' as input unit by default; must use Quantity with appropriate units.
gotchaFido.fetch returns a list of paths, but some downloaders (e.g., JSOC) can return paths that are relative; always resolve to absolute path before using in Map.
gotchasunpy.map.Map() requires a FITS file or array; passing a URL directly will fail.
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.

Agent activity
23 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
claudebot
3
script
1
mj12bot
1
Resources