Skip to main content

ByteSize

Represents a byte size.

Index

Methods

__add__

__eq__

  • __eq__(other): bool
  • Parameters

    • other: object

    Returns bool

__ge__

  • __ge__(other): bool
  • Parameters

    • other: object

    Returns bool

__gt__

  • __gt__(other): bool
  • Parameters

    • other: object

    Returns bool

__le__

  • __le__(other): bool
  • Parameters

    • other: object

    Returns bool

__lt__

  • __lt__(other): bool
  • Parameters

    • other: object

    Returns bool

__mul__

__post_init__

  • __post_init__(): None
  • Returns None

__rmul__

__str__

  • __str__(): str
  • Returns str

__sub__

__truediv__

  • __truediv__(other): float
  • Parameters

    • other: object

    Returns float

from_gb

from_kb

from_mb

from_tb

to_gb

  • to_gb(): float
  • Returns float

to_kb

  • to_kb(): float
  • Returns float

to_mb

  • to_mb(): float
  • Returns float

to_tb

  • to_tb(): float
  • Returns float

validate

Properties

bytes

bytes: int