Coverage for python/lsst/daf/butler/__init__.py: 100%
41 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-10-09 03:22 -0700
« prev ^ index » next coverage.py v7.10.6, created at 2025-10-09 03:22 -0700
1# This file is part of daf_butler.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (http://www.lsst.org).
6# See the COPYRIGHT file at the top-level directory of this distribution
7# for details of code ownership.
8#
9# This software is dual licensed under the GNU General Public License and also
10# under a 3-clause BSD license. Recipients may choose which of these licenses
11# to use; please see the files gpl-3.0.txt and/or bsd_license.txt,
12# respectively. If you choose the GPL option then the following text applies
13# (but note that there is still no warranty even if you opt for BSD instead):
14#
15# This program is free software: you can redistribute it and/or modify
16# it under the terms of the GNU General Public License as published by
17# the Free Software Foundation, either version 3 of the License, or
18# (at your option) any later version.
19#
20# This program is distributed in the hope that it will be useful,
21# but WITHOUT ANY WARRANTY; without even the implied warranty of
22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23# GNU General Public License for more details.
24#
25# You should have received a copy of the GNU General Public License
26# along with this program. If not, see <http://www.gnu.org/licenses/>.
28"""
29Data Access Butler
30"""
32# Some components are not auto-imported since they can have additional runtime
33# dependencies.
35from . import logging # most symbols are helpers only
36from . import progress # most symbols are only used by handler implementors
37from . import ddl, time_utils
38from ._butler import *
39from ._butler_collections import *
40from ._butler_config import *
41from ._butler_metrics import *
42from ._butler_repo_index import *
43from ._collection_type import CollectionType
44from ._column_categorization import *
45from ._column_tags import *
46from ._column_type_info import *
47from ._config import *
48from ._config_support import LookupKey
49from ._dataset_association import *
50from ._dataset_existence import *
51from ._dataset_provenance import *
52from ._dataset_ref import *
53from ._dataset_type import *
54from ._deferredDatasetHandle import *
55from ._exceptions import *
56from ._file_dataset import *
57from ._file_descriptor import *
58from ._formatter import *
59from ._labeled_butler_factory import *
61# Do not import 'json' at all by default.
62from ._limited_butler import *
63from ._location import *
64from ._named import *
65from ._quantum import *
66from ._quantum_backed import *
67from ._storage_class import *
68from ._storage_class_delegate import *
69from ._timespan import *
70from ._topology import *
72# Only lift 'Datastore' itself to this scope.
73from .datastore import Datastore
74from .dimensions import *
76# Only export 'ButlerLogRecords' from 'logging', import the module as-is for
77# other symbols. ButlerLogRecords is the fundamental type stored in datastores.
78from .logging import ButlerLogRecords
80# Do not import or lift symbols from mapping_factory and persistence_content,
81# as those are internal.
82# Only lift 'Progress' from 'progress'; the module is imported as-is above
83from .progress import Progress
85# Do not import or lift symbols from 'server' or 'server_models'.
86# Import the registry subpackage directly for other symbols.
87from .registry import MissingCollectionError, NoDefaultCollectionError, Registry, RegistryConfig
88from .transfers import RepoExportContext, YamlRepoExportBackend, YamlRepoImportBackend
89from .version import *
91# Do not import or lift symbols from 'queries' until they are public.
94# Do not import or lift symbols from 'repo_relocation'.
96# Do not export the utility routines from utils.