File: __init__.py

package info (click to toggle)
python-asdf 2.14.3-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,280 kB
  • sloc: python: 16,612; makefile: 124
file content (20 lines) | stat: -rw-r--r-- 587 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import importlib

from .defragment import defragment
from .diff import diff
from .edit import edit
from .exploded import explode, implode
from .extension import find_extensions
from .info import info
from .tags import list_tags
from .to_yaml import to_yaml

__all__ = ["implode", "explode", "to_yaml", "defragment", "diff", "list_tags", "find_extensions", "info", "edit"]


# Extracting ASDF-in-FITS files requires Astropy
if importlib.util.find_spec("astropy"):
    from .extract import extract_file
    from .remove_hdu import remove_hdu

    __all__ += ["extract_file", "remove_hdu"]