skillfed

asdf-astropy

ASDF serialization support for astropy

asdf-astropy v0.11.0 245.9K downloads/30d#8,719 on PyPI19
License unclear Active released

What it is and what it does

asdf-astropy is a plugin package that extends the ASDF serialization framework to handle astropy objects. When installed, it automatically registers handlers that allow astropy data structures to be saved and loaded in ASDF format. The package supersedes the built-in astropy.io.misc.asdf module, which is deprecated.

The package depends on astropy, numpy, and the broader ASDF ecosystem (asdf, asdf-coordinates-schemas, asdf-transform-schemas, asdf-standard) to function. It requires Python >=3.11. Installation is straightforward via pip with no compiled dependencies, making it suitable for environments where you need to persist or exchange astropy objects in a standardized binary format.

Use it for:

  • Save and load astropy objects in ASDF format for reproducible scientific workflows.
  • Exchange astronomical data between Python and other tools that support ASDF without lossy conversion.
  • Archive astropy datasets in a compact, schema-validated binary format that preserves metadata.
  • Integrate astropy objects into ASDF-based data pipelines in observatories or research institutions.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides ASDF serialization plugins for astropy objects, enabling efficient binary storage and retrieval of astronomical data structures.

Yes, if you work with astropy and need to serialize its objects to ASDF format. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is widely used. Install it when you require ASDF support for astropy; otherwise it is not necessary. Note: license classification is unclear in the metadata despite the description citing BSD 3-Clause—verify the actual license before use in proprietary contexts.

Install

asdf-astropy on PyPI

pip

pip install asdf-astropy

uv

uv add asdf-astropy

poetry

poetry add asdf-astropy

Installing asdf-astropy

Before you install

Low install friction with a pure-wheel distribution. Actively maintained with last commit on 2026-08-03. Depends on seven runtime packages including astropy, numpy, and asdf ecosystem libraries.

Quickstart

pip install asdf-astropy

import asdf
import astropy.coordinates

# Plugins are automatically enabled; use astropy and asdf normally
with asdf.open('data.asdf') as af:
    coord = af['coordinate']

Requires Python >=3.11

Verify before relying

  • License classification marked unclear in metadata despite description mentioning BSD 3-Clause; verify actual license terms before deployment.
  • Whether these plugins fully replace the deprecated astropy.io.misc.asdf module for all use cases.
  • Actual adoption and stability of the plugin system in production environments.

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 7 — asdf, asdf-coordinates-schemas, asdf-transform-schemas, asdf-standard, astropy, numpy, packaging
Maintenance actively maintained — 140 days since the last release
Last repo commit
First released
Downloads 245,889/month — #8,719 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: asdf_astropy-0.11.0-py3-none-any.whl

Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3

Tags

astropy asdf serializationasdf astropy pluginsserialize astropy objectsastropy binary data formatasdf astronomical data
serializationastronomydata-format

More Scientific/Engineering packages