utils
ProgressBar
¶
Bases: ProgressType
Progressbar for MinIO function's progress
parameter.
Source code in openml/utils.py
set_meta(object_name, total_length)
¶
Initializes the progress bar.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
object_name
|
str
|
Not used. |
required |
total_length
|
int
|
File size of the object in bytes. |
required |
Source code in openml/utils.py
update(length)
¶
Updates the progress bar.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
length
|
int
|
Number of bytes downloaded since last |
required |
Source code in openml/utils.py
extract_xml_tags(xml_tag_name, node, *, allow_none=True)
¶
Helper to extract xml tags from xmltodict.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xml_tag_name
|
str
|
Name of the xml tag to extract from the node. |
required |
node
|
Mapping[str, Any]
|
Node object returned by |
required |
allow_none
|
bool
|
If |
True
|
Returns:
Type | Description |
---|---|
object
|
|