Skip to content

Commit cd4495e

Browse files
committed
Merge branch 'move_utils' into models-experimental
2 parents 778b87e + abc0f49 commit cd4495e

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

openml/utils/__init__.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""Utilities module."""
2+
3+
from openml.utils._openml import (
4+
ProgressBar,
5+
_create_cache_directory,
6+
_create_cache_directory_for_id,
7+
_create_lockfiles_dir,
8+
_delete_entity,
9+
_get_cache_dir_for_id,
10+
_get_cache_dir_for_key,
11+
_get_rest_api_type_alias,
12+
_list_all,
13+
_remove_cache_dir_for_id,
14+
_tag_entity,
15+
_tag_openml_base,
16+
extract_xml_tags,
17+
thread_safe_if_oslo_installed,
18+
)
19+
20+
__all__ = [
21+
"ProgressBar",
22+
"_create_cache_directory",
23+
"_create_cache_directory_for_id",
24+
"_create_lockfiles_dir",
25+
"_delete_entity",
26+
"_get_cache_dir_for_id",
27+
"_get_cache_dir_for_key",
28+
"_get_rest_api_type_alias",
29+
"_list_all",
30+
"_remove_cache_dir_for_id",
31+
"_tag_entity",
32+
"_tag_openml_base",
33+
"extract_xml_tags",
34+
"thread_safe_if_oslo_installed",
35+
]

openml/utils.py renamed to openml/utils/_openml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import openml._api_calls
1919
import openml.exceptions
2020

21-
from . import config
21+
from openml import config
2222

2323
# Avoid import cycles: https://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
2424
if TYPE_CHECKING:

0 commit comments

Comments
 (0)