Skip to content

Commit 8855e6e

Browse files
committed
FIX #192 use https when possible
1 parent 35dad6c commit 8855e6e

7 files changed

Lines changed: 12 additions & 9 deletions

File tree

openml/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The OpenML module implements a python interface to
3-
`OpenML <http://openml.org>`_, a collaborative platform for machine learning.
4-
OpenML can be used to
3+
`OpenML <https://www.openml.org>`_, a collaborative platform for machine
4+
learning. OpenML can be used to
55
66
* store, download and analyze datasets
77
* make experiments and their results (e.g. models, predictions)
@@ -10,7 +10,7 @@
1010
meta studies
1111
1212
In particular, this module implemts a python interface for the
13-
`OpenML REST API <http://openml.org/guide#!rest_services>`_
13+
`OpenML REST API <https://www.openml.org/guide#!rest_services>`_
1414
(`REST on wikipedia
1515
<http://en.wikipedia.org/wiki/Representational_state_transfer>`_).
1616
"""

openml/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
format='[%(levelname)s] [%(asctime)s:%(name)s] %('
1212
'message)s', datefmt='%H:%M:%S')
1313

14-
server = "http://www.openml.org/api/v1/xml"
14+
server = "https://www.openml.org/api/v1/xml"
1515
apikey = ""
1616
cachedir = ""
1717
privatedir = ""

openml/datasets/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _list_datasets(api_call):
175175
assert type(datasets_dict['oml:data']['oml:dataset']) == list, \
176176
type(datasets_dict['oml:data'])
177177
assert datasets_dict['oml:data']['@xmlns:oml'] == \
178-
'http://openml.org/openml'
178+
'http://openml.org/openml', datasets_dict['oml:data']['@xmlns:oml']
179179

180180
datasets = dict()
181181
for dataset_ in datasets_dict['oml:data']['oml:dataset']:

openml/flows/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _check_flow_exists(name, version):
2020
2121
Notes
2222
-----
23-
see http://www.openml.org/api_docs/#!/flow/get_flow_exists_name_version
23+
see https://www.openml.org/api_docs/#!/flow/get_flow_exists_name_version
2424
"""
2525
if not (type(name) is str and len(name) > 0):
2626
raise ValueError('Argument \'name\' should be a non-empty string')

openml/runs/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def list_runs(offset=None, size=None, id=None, task=None,
264264
flow=None, uploader=None, tag=None):
265265
"""List all runs matching all of the given filters.
266266
267-
Perform API call `/run/list/{filters} <http://www.openml.org/api_docs/#!/run/get_run_list_filters>`_
267+
Perform API call `/run/list/{filters} <https://www.openml.org/api_docs/#!/run/get_run_list_filters>`_
268268
269269
Parameters
270270
----------

openml/tasks/functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def list_tasks(task_type_id=None, offset=None, size=None, tag=None):
9696
----------
9797
task_type_id : int, optional
9898
ID of the task type as detailed
99-
`here <http://www.openml.org/search?type=task_type>`_.
99+
`here <https://www.openml.org/search?type=task_type>`_.
100100
offset : int, optional
101101
the number of tasks to skip, starting from the first
102102
size : int, optional
@@ -131,6 +131,8 @@ def list_tasks(task_type_id=None, offset=None, size=None, tag=None):
131131

132132
def _list_tasks(api_call):
133133
return_code, xml_string = _perform_api_call(api_call)
134+
with open('/tmp/list_tasks.xml', 'w') as fh:
135+
fh.write(xml_string)
134136
tasks_dict = xmltodict.parse(xml_string)
135137
# Minimalistic check if the XML is useful
136138
if 'oml:tasks' not in tasks_dict:

openml/testing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def setUp(self):
4242
self.cached = True
4343
# amueller's read/write key that he will throw away later
4444
openml.config.apikey = "610344db6388d9ba34f6db45a3cf71de"
45-
openml.config.server = "http://test.openml.org/api/v1/xml"
45+
#openml.config.server = "http://capa.win.tue.nl/api/v1/xml"
46+
openml.config.server = "https://test.openml.org/api/v1/xml"
4647
openml.config.set_cache_directory(self.workdir, self.workdir)
4748

4849
def tearDown(self):

0 commit comments

Comments
 (0)