Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
bf6e000
changes made
satvshr Dec 29, 2025
0159f47
set up folder structure and base code
geetu040 Dec 30, 2025
8b6af81
Merge branch 'issue1564' of https://github.com/satvshr/openml-python …
satvshr Dec 30, 2025
834782c
bug fixing
satvshr Dec 30, 2025
38ae9be
test failures fix
satvshr Dec 30, 2025
93ab9c2
Update flow_id_tutorial.py
satvshr Dec 30, 2025
aa25dd6
_defaults bug fixing
satvshr Dec 30, 2025
58e9175
Merge branch 'main' into migration
fkiraly Dec 31, 2025
a98b6b1
removed __setattr__ given it is not supported
satvshr Dec 31, 2025
7c82054
Merge branch 'main' into issue1564
satvshr Dec 31, 2025
bdd65ff
Merge branch 'main' into migration
geetu040 Jan 1, 2026
f8fbe1e
Merge branch 'main' into issue1564
satvshr Jan 1, 2026
4fdcb64
Merge branch 'main' into issue1564
satvshr Jan 2, 2026
b3513f0
Merge branch 'main' into issue1564
satvshr Jan 4, 2026
52ef379
fix pre-commit
geetu040 Jan 5, 2026
146dd21
Update all files
satvshr Jan 5, 2026
7a67bf0
Update introduction_tutorial.py
satvshr Jan 5, 2026
5dfcbce
refactor
geetu040 Jan 7, 2026
2acbe99
implement cache_dir
geetu040 Jan 7, 2026
af99880
refactor
geetu040 Jan 7, 2026
b111905
Merge branch 'main' into pr/1577
fkiraly Jan 7, 2026
83f36c2
Merge branch 'issue1564' of https://github.com/satvshr/openml-python …
fkiraly Jan 7, 2026
74ab366
Merge branch 'main' into pr/1576
fkiraly Jan 7, 2026
4241624
bug fixing
satvshr Jan 12, 2026
f01c1e9
Update test_utils.py
satvshr Jan 12, 2026
07cc1c8
Update test_config.py
satvshr Jan 12, 2026
1dbc780
merge main
satvshr Jan 14, 2026
4c75e16
undo changes in tasks/functions.py
geetu040 Jan 15, 2026
5762185
Merge branch 'main' into migration
geetu040 Jan 15, 2026
021a1e1
made requested changes
satvshr Jan 15, 2026
4c4a12c
Merge branch 'main' into issue1564
satvshr Jan 15, 2026
1d91220
made requested changes
satvshr Jan 15, 2026
3e26ace
Merge branch 'issue1564' of https://github.com/satvshr/openml-python …
satvshr Jan 15, 2026
0060b2e
fixed bugs
satvshr Jan 15, 2026
65ba66b
fixed bugs
satvshr Jan 15, 2026
317c6e9
fixed bugs
satvshr Jan 15, 2026
503ab82
fixed bugs
satvshr Jan 15, 2026
fd7ea2b
Merge branch 'main' into issue1564
satvshr Jan 16, 2026
fa3cd40
bug fixing
satvshr Jan 16, 2026
7e9bc1f
Merge branch 'main' into migration
geetu040 Jan 21, 2026
c603383
add tests directory
geetu040 Jan 21, 2026
ff6a8b0
use enum for delay method
geetu040 Jan 21, 2026
f01898f
implement cache
geetu040 Jan 21, 2026
5c4511e
refactor clients
geetu040 Jan 21, 2026
9d0098f
Merge branch 'main' into issue1564
fkiraly Jan 21, 2026
43276d2
fix import in resources/base.py
geetu040 Jan 23, 2026
1206f69
refactor and add exception handling
geetu040 Jan 26, 2026
bde5942
Merge branch 'main' into issue1564
satvshr Jan 26, 2026
4948e99
refactor resources/base/
geetu040 Jan 26, 2026
a354167
implement delete
geetu040 Jan 26, 2026
1fe7e3e
implement publish and minor refactoring
geetu040 Jan 27, 2026
54a3151
implement tag/untag
geetu040 Jan 27, 2026
2b6fe65
implement fallback
geetu040 Jan 27, 2026
fa53f8d
add test_http.py
geetu040 Jan 28, 2026
2b2db96
add uses_test_server marker
geetu040 Jan 28, 2026
a2fe0da
[ENH] V1 → V2 API Migration - evaluations
EmanAbdelhaleem Jan 7, 2026
f7ab2e5
update list function, remove circular imports
EmanAbdelhaleem Jan 14, 2026
20f1247
Update list - sync PR
EmanAbdelhaleem Jan 20, 2026
b6e54b3
made get_users a private func
EmanAbdelhaleem Jan 20, 2026
54f45cb
added tests
EmanAbdelhaleem Jan 28, 2026
2f1eed5
sync with pr-1576
EmanAbdelhaleem Jan 28, 2026
c9617f9
implement reset_cache
geetu040 Jan 29, 2026
f8f5452
updated tests structure
EmanAbdelhaleem Jan 29, 2026
5bc37b8
fixes with publish/delete
geetu040 Jan 29, 2026
08d9916
fix cache_key in tests
geetu040 Jan 29, 2026
8caba11
update _not_supported
geetu040 Jan 30, 2026
ee5d515
added fullback test
EmanAbdelhaleem Jan 30, 2026
1913c10
add 'get_api_config' skeleton method
SimonBlanke Jan 30, 2026
7681949
remove 'APISettings'
SimonBlanke Jan 30, 2026
01840a5
impl. 'get_api_config'
SimonBlanke Jan 30, 2026
26ed4c1
add singleton pattern for settings
SimonBlanke Jan 30, 2026
c588d0c
add 'reset_settings'
SimonBlanke Jan 30, 2026
b6ff720
remove unused code
SimonBlanke Jan 30, 2026
80d5afc
reimplement usage of v1 settings config
SimonBlanke Jan 30, 2026
f47112c
first try v2, fallback to v1 if not available
SimonBlanke Jan 30, 2026
d44cf3e
reimplement singelton without the use of 'global'
SimonBlanke Jan 30, 2026
ea7dda1
add explanations
SimonBlanke Jan 30, 2026
f0e5947
change usage of settings to new impl.
SimonBlanke Jan 30, 2026
edcd006
add explanations
SimonBlanke Jan 30, 2026
cde0aae
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 30, 2026
aa1e560
move to config: APIVersion, ResourceType
geetu040 Feb 1, 2026
06b8497
remove api_context entirely
geetu040 Feb 1, 2026
384da91
major refactor
geetu040 Feb 1, 2026
1878138
more refactoring with setup/
geetu040 Feb 2, 2026
dc26e01
implement APIBackend as controller
geetu040 Feb 2, 2026
e2d059b
move enums
geetu040 Feb 2, 2026
d156ad4
module level imports
geetu040 Feb 2, 2026
d7a3788
module level import for _backend
geetu040 Feb 2, 2026
b5b9ef6
module level import for tests
geetu040 Feb 2, 2026
68820fe
Merge branch 'main' into migration
geetu040 Feb 2, 2026
567eca4
add test: test_tag_and_untag
geetu040 Feb 2, 2026
b2287c3
implement get/set_config_values
geetu040 Feb 3, 2026
b7e285e
improve APIBackend.set_config_values
geetu040 Feb 3, 2026
fd43c48
use LegacyConfig
geetu040 Feb 3, 2026
f4aab6b
Revert "use LegacyConfig"
geetu040 Feb 3, 2026
d43cf86
implement _sync_api_config
geetu040 Feb 3, 2026
3e323ed
update tests with _sync_api_config
geetu040 Feb 3, 2026
9195fa6
rename config: timeout -> timeout_seconds
geetu040 Feb 3, 2026
5342eec
use timedelta for default ttl value
geetu040 Feb 3, 2026
adc0e74
update tests, adds v2/fallback
geetu040 Feb 3, 2026
bfb2d3e
add MinIOClient in TestBase
geetu040 Feb 3, 2026
cabaecf
fix linting for builder
geetu040 Feb 3, 2026
d1de0de
Merge branch 'pr-1576' into evaluations-mig
EmanAbdelhaleem Feb 3, 2026
f7839a4
increase timeout to 50 instead of 10
EmanAbdelhaleem Feb 3, 2026
85c1113
fix unbound variables: "code", "message"
geetu040 Feb 4, 2026
39bf86a
use requests.Session()
geetu040 Feb 4, 2026
7b66677
remove "timeout_seconds" entirely
geetu040 Feb 4, 2026
b828c7e
Merge branch 'pr-1576' into evaluations-mig
EmanAbdelhaleem Feb 4, 2026
54bbb05
removed timeout_seconds from the v2 client
EmanAbdelhaleem Feb 4, 2026
d2224c4
update/refactor tests
geetu040 Feb 4, 2026
9608c36
remove unused current_api_version from TestAPIBase
geetu040 Feb 5, 2026
f6bc7f7
make TestAPIBase inherit TestBase
geetu040 Feb 5, 2026
baa3a38
nits: test classes
geetu040 Feb 5, 2026
52b93fe
minor fix in _sync_api_config
geetu040 Feb 6, 2026
ec9477f
chore: rerun CI
geetu040 Feb 6, 2026
e57d47a
Merge branch 'pr-1576' into evaluations-mig
EmanAbdelhaleem Feb 9, 2026
29efbff
updated tests with the new design
EmanAbdelhaleem Feb 9, 2026
10d134a
remove duplicates in _api/resources/__init__.py
geetu040 Feb 10, 2026
935f0f4
implement HTTPClient.download and add tests
geetu040 Feb 10, 2026
9514df8
add docstrings
geetu040 Feb 11, 2026
53bee94
update minio
geetu040 Feb 12, 2026
33b4ca0
make delay functions static
geetu040 Feb 13, 2026
a6b9a45
rename: retry_raise_e -> exception
geetu040 Feb 13, 2026
f924b32
use context-manager for requests.Session
geetu040 Feb 13, 2026
541b0f2
remove "assert response is not None"
geetu040 Feb 13, 2026
acb173f
verify checksum before caching
geetu040 Feb 13, 2026
3e8d1f0
update tests
geetu040 Feb 13, 2026
f83bdb5
minor fix in ResourceV1API.untag
geetu040 Feb 13, 2026
5212164
update tests
EmanAbdelhaleem Feb 16, 2026
294d2e2
Merge branch 'pr-1576' into evaluations-mig
EmanAbdelhaleem Feb 16, 2026
2a42712
remove cache.ttl
geetu040 Feb 16, 2026
001caad
replace config.cache.dir with config.cache_dir
geetu040 Feb 16, 2026
fb38a2d
make HTTPClient.cache compulsory
geetu040 Feb 17, 2026
03c4ca9
remove unused OpenMLCacheRequiredError
geetu040 Feb 17, 2026
8d708fd
implement and use TestAPIBase._create_resource
geetu040 Feb 17, 2026
4f75bba
make ResourceAPI.minio compulsory
geetu040 Feb 17, 2026
164f66f
Merge branch 'main' into migration
geetu040 Feb 17, 2026
c4dae43
rename: use_cache -> enable_cache; reset_cache -> refresh_cache
geetu040 Feb 17, 2026
36c20a2
use server config from TestBase
geetu040 Feb 17, 2026
ab3c1eb
tests: mock HTTP post calls to prevent race conditions
geetu040 Feb 17, 2026
2a488ca
Merge branch 'main' into migration
geetu040 Feb 18, 2026
599c7e1
remove hardcoded server in TestHTTPClient.test_cache
geetu040 Feb 18, 2026
2867862
fix docstring in _resolve_default_cache_dir
geetu040 Feb 18, 2026
f09f3cd
fix docstring in ResourceAPI
geetu040 Feb 18, 2026
5f731ce
remove duplicates in __all__
geetu040 Feb 18, 2026
bad7842
remove ttl related code/docs
geetu040 Feb 18, 2026
aefdb38
remove delay methods in HTTPClient
geetu040 Feb 18, 2026
0f40b02
minor fix in _resolve_default_cache_dir
geetu040 Feb 18, 2026
7ac1672
update FallbackProxy
geetu040 Feb 18, 2026
6ac1dfe
simplify _backend creation
geetu040 Feb 18, 2026
62924c9
Merge branch 'main' into migration
geetu040 Feb 18, 2026
27696bb
req changes
satvshr Feb 20, 2026
190face
resolve conflicts
satvshr Feb 20, 2026
95daaa6
remove old config file
satvshr Feb 20, 2026
7841ea8
added OPENML_TEST_SERVER_ADMIN_KEY_ENV_VAR
satvshr Feb 20, 2026
cc515aa
bug fixing
satvshr Feb 20, 2026
e6a92df
armagh fix
satvshr Feb 20, 2026
1b8c22a
update content_type check
geetu040 Feb 20, 2026
fc839a6
Revert "make delay functions static"
geetu040 Feb 20, 2026
1c922af
Revert "remove delay methods in HTTPClient"
geetu040 Feb 20, 2026
ffa9ce9
Merge branch 'main' into migration
geetu040 Feb 20, 2026
a7b2d21
allow api_key=None
geetu040 Feb 20, 2026
27fe790
add tests for api_key=None
geetu040 Feb 20, 2026
8965112
update cache not found message
geetu040 Feb 23, 2026
72ea1a4
update docs for path in HTTPCache
geetu040 Feb 23, 2026
a696c49
remove elapsed from cached meta
geetu040 Feb 23, 2026
755636d
move self.headers to _HEADERS
geetu040 Feb 23, 2026
d07af34
fix indentation in docstrings of _resolve_default_cache_dir
geetu040 Feb 23, 2026
2d9c8ec
Update openml/_api/clients/http.py
geetu040 Feb 23, 2026
002b989
Merge branch 'main' into migration
geetu040 Feb 23, 2026
045d896
move _handle_delete_exception and_get_endpoint_name, legal_resources
geetu040 Feb 23, 2026
c437966
set HTTPClient.headers
geetu040 Feb 23, 2026
e27470a
remove main_tag
geetu040 Feb 23, 2026
d04d956
remove and merge TestAPIBase into TestBase
geetu040 Feb 23, 2026
9263f7f
minor change in TestHTTPClient.test_cache
geetu040 Feb 23, 2026
79dea29
make HTTPClient.request private
geetu040 Feb 23, 2026
f6497c2
Revert "update FallbackProxy"
geetu040 Feb 23, 2026
dce7f54
use st_ctime instead of st_ctime for cache refresh test
geetu040 Feb 23, 2026
40dd460
Merge branch 'main' into issue1564
geetu040 Feb 24, 2026
0fc917c
majore config refactor
geetu040 Feb 24, 2026
3d86b18
Merge branch 'pr-1577' into migration
geetu040 Feb 24, 2026
aba3d3e
update _config.py
geetu040 Feb 24, 2026
d99d54d
update test_openml_cache_dir_env_var
geetu040 Feb 24, 2026
dc22e3a
fix mutable SERVERS_REGISTRY
geetu040 Feb 25, 2026
7318573
update set_api_version for fallback
geetu040 Feb 25, 2026
29ef187
minor fix
geetu040 Feb 25, 2026
cf94c89
fixes for test_config
geetu040 Feb 25, 2026
298fbda
fixes in conftest urls
geetu040 Feb 25, 2026
9870502
update test_http.py
geetu040 Feb 25, 2026
33065c2
undo changes with test_openml_cache_dir_env_var
geetu040 Feb 25, 2026
76b92bb
fix server mode in test_config.py
geetu040 Feb 25, 2026
419edcb
move _HEADERS to confing
geetu040 Feb 25, 2026
cb6d937
add fixtures for migration tests
geetu040 Feb 25, 2026
8544c8a
update test_http.py with fixtures
geetu040 Feb 25, 2026
d4c413b
update test_versions.py
geetu040 Feb 25, 2026
fab1a15
update test_versions.py
geetu040 Feb 25, 2026
276324a
fix error message in HTTPClient.server
geetu040 Feb 26, 2026
73f7594
fixes in test_versions.py: use DummyTaskAPI instead of TaskAPI
geetu040 Feb 26, 2026
2ee7fa3
add clients in openml._backend
geetu040 Feb 26, 2026
f403366
Merge branch 'pr-1576' into evaluations-mig
EmanAbdelhaleem Feb 26, 2026
ce8f5f9
update tests
EmanAbdelhaleem Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion openml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
# License: BSD 3-Clause
from __future__ import annotations

from typing import TYPE_CHECKING

from . import (
_api_calls,
config,
_config as _config_module,
datasets,
evaluations,
exceptions,
Expand All @@ -33,6 +35,7 @@
utils,
)
from .__version__ import __version__
from ._api import _backend
from .datasets import OpenMLDataFeature, OpenMLDataset
from .evaluations import OpenMLEvaluation
from .flows import OpenMLFlow
Expand All @@ -49,6 +52,11 @@
OpenMLTask,
)

if TYPE_CHECKING:
from ._config import OpenMLConfigManager

config: OpenMLConfigManager = _config_module.__config


def populate_cache(
task_ids: list[int] | None = None,
Expand Down Expand Up @@ -109,6 +117,7 @@ def populate_cache(
"OpenMLTask",
"__version__",
"_api_calls",
"_backend",
"config",
"datasets",
"evaluations",
Expand Down
85 changes: 85 additions & 0 deletions openml/_api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
from .clients import (
HTTPCache,
HTTPClient,
MinIOClient,
)
from .resources import (
API_REGISTRY,
DatasetAPI,
DatasetV1API,
DatasetV2API,
EstimationProcedureAPI,
EstimationProcedureV1API,
EstimationProcedureV2API,
EvaluationAPI,
EvaluationMeasureAPI,
EvaluationMeasureV1API,
EvaluationMeasureV2API,
EvaluationV1API,
EvaluationV2API,
FallbackProxy,
FlowAPI,
FlowV1API,
FlowV2API,
ResourceAPI,
ResourceV1API,
ResourceV2API,
RunAPI,
RunV1API,
RunV2API,
SetupAPI,
SetupV1API,
SetupV2API,
StudyAPI,
StudyV1API,
StudyV2API,
TaskAPI,
TaskV1API,
TaskV2API,
)
from .setup import (
APIBackend,
APIBackendBuilder,
_backend,
)

__all__ = [
"API_REGISTRY",
"APIBackend",
"APIBackendBuilder",
"DatasetAPI",
"DatasetV1API",
"DatasetV2API",
"EstimationProcedureAPI",
"EstimationProcedureV1API",
"EstimationProcedureV2API",
"EvaluationAPI",
"EvaluationMeasureAPI",
"EvaluationMeasureV1API",
"EvaluationMeasureV2API",
"EvaluationV1API",
"EvaluationV2API",
"FallbackProxy",
"FlowAPI",
"FlowV1API",
"FlowV2API",
"HTTPCache",
"HTTPClient",
"MinIOClient",
"ResourceAPI",
"ResourceV1API",
"ResourceV2API",
"RunAPI",
"RunV1API",
"RunV2API",
"SetupAPI",
"SetupV1API",
"SetupV2API",
"StudyAPI",
"StudyV1API",
"StudyV2API",
"TaskAPI",
"TaskV1API",
"TaskV2API",
"_backend",
]
8 changes: 8 additions & 0 deletions openml/_api/clients/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from .http import HTTPCache, HTTPClient
from .minio import MinIOClient

__all__ = [
"HTTPCache",
"HTTPClient",
"MinIOClient",
]
Loading
Loading