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

39 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-13 09:56 +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_collections import * 

40from ._butler_config import * 

41from ._butler_repo_index import * 

42from ._column_categorization import * 

43from ._column_tags import * 

44from ._column_type_info import * 

45from ._config import * 

46from ._config_support import LookupKey 

47from ._dataset_association import * 

48from ._dataset_existence import * 

49from ._dataset_ref import * 

50from ._dataset_type import * 

51from ._deferredDatasetHandle import * 

52from ._exceptions import * 

53from ._file_dataset import * 

54from ._file_descriptor import * 

55from ._formatter import * 

56from ._labeled_butler_factory import * 

57 

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

59from ._limited_butler import * 

60from ._location import * 

61from ._named import * 

62from ._quantum import * 

63from ._quantum_backed import * 

64from ._storage_class import * 

65from ._storage_class_delegate import * 

66from ._timespan import * 

67from ._topology import * 

68 

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

70from .datastore import Datastore 

71from .dimensions import * 

72 

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

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

75from .logging import ButlerLogRecords 

76 

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

78# as those are internal. 

79# Only lift 'Progress' from 'progress'; the module is imported as-is above 

80from .progress import Progress 

81 

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

83# Import the registry subpackage directly for other symbols. 

84from .registry import ( 

85 CollectionType, 

86 MissingCollectionError, 

87 NoDefaultCollectionError, 

88 Registry, 

89 RegistryConfig, 

90) 

91from .transfers import RepoExportContext, YamlRepoExportBackend, YamlRepoImportBackend 

92from .version import * 

93 

94# Do not import or lift symbols from 'queries' until they are public. 

95 

96 

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

98 

99# Do not export the utility routines from utils.