Skip to content

Commit c81a0a0

Browse files
committed
Create alias for constants
1 parent eecf447 commit c81a0a0

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

python/hopsworks_common/constants.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#
2+
# Copyright 2024 Hopsworks AB
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
117
import importlib.util
218

319

python/hsfs/core/constants.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Copyright 2024 Hopsworks AB
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
from hopsworks_common.constants import (
18+
HAS_AIOMYSQL,
19+
HAS_AVRO,
20+
HAS_CONFLUENT_KAFKA,
21+
HAS_FAST_AVRO,
22+
HAS_GREAT_EXPECTATIONS,
23+
HAS_NUMPY,
24+
HAS_SQLALCHEMY,
25+
great_expectations_not_installed_message,
26+
initialise_expectation_suite_for_single_expectation_api_message,
27+
)
28+
29+
30+
__all__ = [
31+
HAS_AIOMYSQL,
32+
HAS_AVRO,
33+
HAS_CONFLUENT_KAFKA,
34+
HAS_FAST_AVRO,
35+
HAS_GREAT_EXPECTATIONS,
36+
HAS_NUMPY,
37+
HAS_SQLALCHEMY,
38+
great_expectations_not_installed_message,
39+
initialise_expectation_suite_for_single_expectation_api_message,
40+
]

0 commit comments

Comments
 (0)