Skip to content

Commit

Permalink
Create alias for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Jul 17, 2024
1 parent eecf447 commit c81a0a0
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/hopsworks_common/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#
# Copyright 2024 Hopsworks AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import importlib.util


Expand Down
40 changes: 40 additions & 0 deletions python/hsfs/core/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Copyright 2024 Hopsworks AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from hopsworks_common.constants import (
HAS_AIOMYSQL,
HAS_AVRO,
HAS_CONFLUENT_KAFKA,
HAS_FAST_AVRO,
HAS_GREAT_EXPECTATIONS,
HAS_NUMPY,
HAS_SQLALCHEMY,
great_expectations_not_installed_message,
initialise_expectation_suite_for_single_expectation_api_message,
)


__all__ = [
HAS_AIOMYSQL,
HAS_AVRO,
HAS_CONFLUENT_KAFKA,
HAS_FAST_AVRO,
HAS_GREAT_EXPECTATIONS,
HAS_NUMPY,
HAS_SQLALCHEMY,
great_expectations_not_installed_message,
initialise_expectation_suite_for_single_expectation_api_message,
]

0 comments on commit c81a0a0

Please sign in to comment.