Skip to content

Module ciocore.uploader.upload_stats.stats_formats

These set of classes are intended to format a particular type of data in a human-readable form by supporting string.format()

Classes

StatValue

Source
def __init__(self, value):
    self.value = value
StatValue(value)

Descendants

  • ciocore.uploader.upload_stats.stats_formats.ByteSizeValue
  • ciocore.uploader.upload_stats.stats_formats.FileProgressValue
  • ciocore.uploader.upload_stats.stats_formats.PercentageValue
  • ciocore.uploader.upload_stats.stats_formats.TimeRemainingValue

ByteSizeValue

Source
def __init__(self, value):
    '''        
    :param value: The value in Bytes
    :type value: number
    '''

    super(ByteSizeValue, self).__init__(value=value)
ByteSizeValue(value)

:param value: The value in Bytes :type value: number

Ancestors (in MRO)

  • ciocore.uploader.upload_stats.stats_formats.StatValue

FileProgressValue

FileProgressValue(value)

Ancestors (in MRO)

  • ciocore.uploader.upload_stats.stats_formats.StatValue

PercentageValue

PercentageValue(value)

Ancestors (in MRO)

  • ciocore.uploader.upload_stats.stats_formats.StatValue

TimeRemainingValue

Source
def __init__(self, value):

    if value is not None:
        value = datetime.timedelta(seconds=value)

    super(TimeRemainingValue, self).__init__(value)
TimeRemainingValue(value)

Ancestors (in MRO)

  • ciocore.uploader.upload_stats.stats_formats.StatValue
Back to top