utils
openml.utils
#
ProgressBar
#
Bases: ProgressType
Progressbar for MinIO function's progress
parameter.
Source code in openml/utils.py
set_meta
#
Initializes the progress bar.
Parameters#
object_name: str Not used.
int
File size of the object in bytes.
Source code in openml/utils.py
update
#
Updates the progress bar.
Parameters#
length: int
Number of bytes downloaded since last update
call.
Source code in openml/utils.py
extract_xml_tags
#
extract_xml_tags(xml_tag_name: str, node: Mapping[str, Any], *, allow_none: bool = True) -> Any | None
Helper to extract xml tags from xmltodict.
Parameters#
xml_tag_name : str Name of the xml tag to extract from the node.
Mapping[str, Any]
Node object returned by xmltodict
from which xml_tag_name
should be extracted.
bool
If False
, the tag needs to exist in the node. Will raise a
ValueError
if it does not.
Returns#
object