asdf-astropy
ASDF serialization support for astropy
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-astropyuv
uv add asdf-astropypoetry
poetry add asdf-astropyInstalling 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
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
asdfASDF is a Python implementation of the Advanced…
unclear · top 15,000 on PyPI
astropy-iers-dataProvides IERS Earth Rotation and Leap Second…
permissive · top 5,000 on PyPI
asdf-coordinates-schemasProvides ASDF schemas for validating coordinate…
unclear · top 15,000 on PyPI
asdf-transform-schemasProvides ASDF schemas for validating transform…
unclear · top 15,000 on PyPI
astroqueryAstroquery provides a Python interface to query…
permissive · top 15,000 on PyPI
astropy-healpixProvides HEALPix spherical pixelization for…
permissive · top 15,000 on PyPI
asdf-standardProvides the ASDF (Advanced Scientific Data…
unclear · top 15,000 on PyPI
specutilsSpecutils provides Python representations of…
permissive · top 15,000 on PyPI
pyvoPyVO provides Python access to Virtual…
permissive · top 15,000 on PyPI
PyAVMPyAVM reads, writes, and embeds Astronomy…
permissive · top 15,000 on PyPI