Skip to content

Commit 0f37a9f

Browse files
committed
Adapt the moved files
1 parent d838210 commit 0f37a9f

23 files changed

+336
-19
lines changed

Diff for: python/hopsworks/version.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.version import (
18+
__version__,
19+
)
20+
21+
22+
__all__ = [
23+
__version__,
24+
]

Diff for: python/hopsworks_common/code.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
import json
1920

20-
from hsfs import util
21+
from hopsworks_common import util
2122

2223

2324
class Code:

Diff for: python/hopsworks_common/core/code_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

18-
from hsfs import client
19+
from hopsworks_common import client
1920

2021

2122
class CodeApi:

Diff for: python/hopsworks_common/core/code_engine.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
import datetime
1920
import os
2021

21-
from hsfs import code
22-
from hsfs.core import code_api
22+
from hopsworks_common import code
23+
from hopsworks_common.core import code_api
2324

2425

2526
class CodeEngine:

Diff for: python/hopsworks_common/core/hosts_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
from typing import Any, List
1920

20-
from hsfs import client
21+
from hopsworks_common import client
2122

2223

2324
class HostsApi:

Diff for: python/hopsworks_common/core/kafka_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
from typing import Any, Dict, Union
1920

20-
from hsfs import client
21+
from hopsworks_common import client
2122

2223

2324
class KafkaApi:

Diff for: python/hopsworks_common/core/opensearch.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
import logging
@@ -21,9 +22,12 @@
2122

2223
import opensearchpy
2324
import urllib3
24-
from hsfs import client
25-
from hsfs.client.exceptions import FeatureStoreException, VectorDatabaseException
26-
from hsfs.core.opensearch_api import OpenSearchApi
25+
from hopsworks_common import client
26+
from hopsworks_common.client.exceptions import (
27+
FeatureStoreException,
28+
VectorDatabaseException,
29+
)
30+
from hopsworks_common.core.opensearch_api import OpenSearchApi
2731
from opensearchpy import OpenSearch
2832
from opensearchpy.exceptions import (
2933
AuthenticationException,

Diff for: python/hopsworks_common/core/opensearch_api.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
from typing import Any, Dict
1920

2021
from furl import furl
21-
from hsfs import client
22-
from hsfs.client.exceptions import FeatureStoreException
23-
from hsfs.core.variable_api import VariableApi
22+
from hopsworks_common import client
23+
from hopsworks_common.client.exceptions import FeatureStoreException
24+
from hopsworks_common.core.variable_api import VariableApi
2425

2526

2627
class OPENSEARCH_CONFIG:

Diff for: python/hopsworks_common/core/project_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

18-
from hsfs import client
19+
from hopsworks_common import client
1920

2021

2122
class ProjectApi:

Diff for: python/hopsworks_common/core/services_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
from typing import Any, Dict
1920

20-
from hsfs import client
21+
from hopsworks_common import client
2122

2223

2324
class ServicesApi:

Diff for: python/hopsworks_common/core/type_systems.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
from __future__ import annotations
1718

1819
import ast
@@ -21,7 +22,7 @@
2122
from typing import TYPE_CHECKING, Literal, Union
2223

2324
import pytz
24-
from hsfs.core.constants import HAS_ARROW, HAS_PANDAS, HAS_POLARS
25+
from hopsworks_common.core.constants import HAS_ARROW, HAS_PANDAS, HAS_POLARS
2526

2627

2728
if TYPE_CHECKING:

Diff for: python/hsfs/code.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.code import (
18+
Code,
19+
)
20+
21+
22+
__all__ = [
23+
Code,
24+
]

Diff for: python/hsfs/core/code_api.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.core.code_api import (
18+
CodeApi,
19+
)
20+
21+
22+
__all__ = [
23+
CodeApi,
24+
]

Diff for: python/hsfs/core/code_engine.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.core.code_engine import (
18+
CodeEngine,
19+
RunType,
20+
)
21+
22+
23+
__all__ = [
24+
CodeEngine,
25+
RunType,
26+
]

Diff for: python/hsfs/core/hosts_api.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.core.hosts_api import (
18+
HostsApi,
19+
)
20+
21+
22+
__all__ = [
23+
HostsApi,
24+
]

Diff for: python/hsfs/core/kafka_api.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.core.kafka_api import (
18+
KafkaApi,
19+
)
20+
21+
22+
__all__ = [
23+
KafkaApi,
24+
]

Diff for: python/hsfs/core/opensearch.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.core.opensearch import (
18+
OpenSearchClientSingleton,
19+
OpensearchRequestOption,
20+
)
21+
22+
23+
__all__ = [
24+
OpenSearchClientSingleton,
25+
OpensearchRequestOption,
26+
]

Diff for: python/hsfs/core/opensearch_api.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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.core.opensearch_api import (
18+
OPENSEARCH_CONFIG,
19+
OpenSearchApi,
20+
)
21+
22+
23+
__all__ = [
24+
OPENSEARCH_CONFIG,
25+
OpenSearchApi,
26+
]

Diff for: python/hsfs/core/project_api.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.core.project_api import (
18+
ProjectApi,
19+
)
20+
21+
22+
__all__ = [
23+
ProjectApi,
24+
]

0 commit comments

Comments
 (0)