
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
heliospice
Advanced tools
Spacecraft ephemeris made easy — auto-managed SPICE kernels for heliophysics missions.
heliospice wraps SpiceyPy with automatic kernel download, caching, and loading. Ask for a spacecraft position and heliospice handles the rest: downloading the right NAIF kernels, loading them in the correct order, and returning results as Python dicts or pandas DataFrames.
pip install heliospice
For MCP server support (Claude Desktop, Claude Code, Cursor, etc.):
pip install heliospice[mcp]
from heliospice import get_position, get_trajectory
# Where is Parker Solar Probe right now?
pos = get_position("PSP", observer="SUN", time="2024-01-15", frame="ECLIPJ2000")
print(f"PSP is {pos['r_au']:.3f} AU from the Sun")
# Get a month of trajectory data as a DataFrame
df = get_trajectory(
"PSP", observer="SUN",
time_start="2024-01-01", time_end="2024-01-31",
step="1h", frame="ECLIPJ2000",
)
print(df[["r_au"]].describe())
Kernels are automatically downloaded from NAIF on first use and cached in ~/.heliospice/kernels/.
Sun, Earth, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
from heliospice import get_position, get_trajectory, get_state
# Single position
pos = get_position("ACE", observer="EARTH", time="2024-06-01", frame="GSE")
# Full state (position + velocity)
state = get_state("PSP", observer="SUN", time="2024-01-15", frame="ECLIPJ2000")
# Trajectory timeseries (returns pandas DataFrame)
df = get_trajectory(
"Cassini", observer="SATURN",
time_start="2010-01-01", time_end="2010-12-31",
step="6h", frame="ECLIPJ2000",
include_velocity=True,
)
from heliospice import transform_vector, list_available_frames
# J2000 to Ecliptic
v_ecl = transform_vector([1.0, 0.0, 0.0], "2024-01-15", "J2000", "ECLIPJ2000")
# RTN transform (requires spacecraft)
v_rtn = transform_vector(
[5.0, -3.0, 1.0], "2024-01-15",
from_frame="ECLIPJ2000", to_frame="RTN",
spacecraft="PSP",
)
# List all frames
print(list_available_frames())
from heliospice import resolve_mission, list_supported_missions
# Resolve name aliases
naif_id, key = resolve_mission("Parker Solar Probe") # -> (-96, "PSP")
# List all spacecraft
missions = list_supported_missions()
from heliospice import get_kernel_manager
km = get_kernel_manager()
km.ensure_mission_kernels("PSP") # Download + load
print(km.get_cache_info()) # Cache stats
km.unload_all() # Free memory
| Method | Description |
|---|---|
HELIOSPICE_KERNEL_DIR env var | Override kernel cache directory |
KernelManager(kernel_dir=...) | Per-instance override |
| Default | ~/.heliospice/kernels/ |
heliospice includes an MCP server for LLM tool use:
# Run directly
heliospice-mcp
# Or via Python
python -m heliospice.server
Add to claude_desktop_config.json:
{
"mcpServers": {
"heliospice": {
"command": "heliospice-mcp"
}
}
}
| Tool | Description |
|---|---|
get_ephemeris | Position/velocity — single time (inline) or timeseries (CSV) |
compute_distance | Distance between two bodies |
transform_coordinates | Coordinate frame transform |
list_spice_missions | Supported missions |
list_coordinate_frames | Available frames with descriptions |
manage_kernels | Kernel cache management |
MIT
FAQs
Spacecraft ephemeris made easy — auto-managed SPICE kernels for heliophysics missions
The pypi package heliospice receives a total of 37 weekly downloads. As such, heliospice popularity was classified as not popular.
We found that heliospice demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.