Coverage for python/lsst/daf/butler/__init__.py: 100%

39 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-05 09:58 +0000

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/>. 

27 

28""" 

29Data Access Butler 

30""" 

31 

32# Some components are not auto-imported since they can have additional runtime 

33# dependencies. 

34 

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_config import * 

40from ._butler_repo_index import * 

41from ._column_categorization import * 

42from ._column_tags import * 

43from ._column_type_info import * 

44from ._config import * 

45from ._config_support import LookupKey 

46from ._dataset_association import * 

47from ._dataset_existence import * 

48from ._dataset_ref import * 

49from ._dataset_type import * 

50from ._deferredDatasetHandle import * 

51from ._exceptions import * 

52from ._file_dataset import * 

53from ._file_descriptor import * 

54from ._formatter import * 

55from ._labeled_butler_factory import * 

56 

57# Do not import 'json' at all by default. 

58from ._limited_butler import * 

59from ._location import * 

60from ._named import * 

61from ._quantum import * 

62from ._quantum_backed import * 

63from ._storage_class import * 

64from ._storage_class_delegate import * 

65from ._timespan import * 

66from ._topology import * 

67 

68# Only lift 'Datastore' itself to this scope. 

69from .datastore import Datastore 

70from .dimensions import * 

71 

72# Only export 'ButlerLogRecords' from 'logging', import the module as-is for 

73# other symbols. ButlerLogRecords is the fundamental type stored in datastores. 

74from .logging import ButlerLogRecords 

75 

76# Do not import or lift symbols from mapping_factory and persistence_content, 

77# as those are internal. 

78# Only lift 'Progress' from 'progess'; the module is imported as-is above 

79from .progress import Progress 

80 

81# Only import the main public symbols from queries 

82from .queries import DataCoordinateQueryResults, DatasetRefQueryResults, DimensionRecordQueryResults, Query 

83 

84# Do not import or lift symbols from 'server' or 'server_models'. 

85# Import the registry subpackage directly for other symbols. 

86from .registry import ( 

87 CollectionType, 

88 MissingCollectionError, 

89 NoDefaultCollectionError, 

90 Registry, 

91 RegistryConfig, 

92) 

93from .transfers import RepoExportContext, YamlRepoExportBackend, YamlRepoImportBackend 

94from .version import * 

95 

96# Do not import or lift symbols from 'repo_relocation'. 

97 

98# Do not export the utility routines from utils.