@_with_element
def progress(self, element, value):
    'Display a progress bar.\n\n        Parameters\n        ----------\n        value : int or float\n            0 <= value <= 100 for int\n\n            0.0 <= value <= 1.0 for float\n\n        Example\n        -------\n        Here is an example of a progress bar increasing over time:\n\n        >>> import time\n        >>>\n        >>> my_bar = st.progress(0)\n        >>>\n        >>> for percent_complete in range(100):\n        ...     time.sleep(0.1)\n        ...     my_bar.progress(percent_complete + 1)\n\n        '
    if isinstance(value, float):
        if (0.0 <= value <= 1.0):
            element.progress.value = int((value * 100))
        else:
            raise StreamlitAPIException(('Progress Value has invalid value [0.0, 1.0]: %f' % value))
    elif isinstance(value, int):
        if (0 <= value <= 100):
            element.progress.value = value
        else:
            raise StreamlitAPIException(('Progress Value has invalid value [0, 100]: %d' % value))
    else:
        raise StreamlitAPIException(('Progress Value has invalid type: %s' % type(value).__name__))
Display a progress bar.

Parameters
----------
value : int or float
    0 <= value <= 100 for int

    0.0 <= value <= 1.0 for float

Example
-------
Here is an example of a progress bar increasing over time:

>>> import time
>>>
>>> my_bar = st.progress(0)
>>>
>>> for percent_complete in range(100):
...     time.sleep(0.1)
...     my_bar.progress(percent_complete + 1)
@_with_element
def progress(self, element, value):
    'Display a progress bar.\n\n        Parameters\n        ----------\n        value : int or float\n            0 <= value <= 100 for int\n\n            0.0 <= value <= 1.0 for float\n\n        Example\n        -------\n        Here is an example of a progress bar increasing over time:\n\n        >>> import time\n        >>>\n        >>> my_bar = st.progress(0)\n        >>>\n        >>> for percent_complete in range(100):\n        ...     time.sleep(0.1)\n        ...     my_bar.progress(percent_complete + 1)\n\n        '
    if isinstance(value, float):
        if (0.0 <= value <= 1.0):
            element.progress.value = int((value * 100))
        else:
            raise StreamlitAPIException(('Progress Value has invalid value [0.0, 1.0]: %f' % value))
    elif isinstance(value, int):
        if (0 <= value <= 100):
            element.progress.value = value
        else:
            raise StreamlitAPIException(('Progress Value has invalid value [0, 100]: %d' % value))
    else:
        raise StreamlitAPIException(('Progress Value has invalid type: %s' % type(value).__name__))