File: __init__.py

package info (click to toggle)
python-asdf 2.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,248 kB
  • sloc: python: 13,104; makefile: 125
file content (24 lines) | stat: -rw-r--r-- 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-

import importlib

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


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


# 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']