7.8. Module pyUnits

7.8.1. Overview

7.8.2. Classes

base_unit

unit

quantity

class base_unit
__init__((object)arg1) None

__init__( (object)arg1, (float)arg2, (dict)arg3) -> object

__mul__((base_unit)arg1, (base_unit)arg2) object

__mul__( (base_unit)arg1, (float)arg2) -> object

__pow__((base_unit)arg1, (float)arg2) object
__eq__((base_unit)arg1, (base_unit)arg2) object
__ne__((base_unit)arg1, (base_unit)arg2) object
property C
property I
property L
property M
property N
property O
property T
property multiplier
class unit
__init__((object)arg1) None

__init__( (object)arg1, (dict)arg2) -> object

__mul__((unit)arg1, (unit)arg2) object

__mul__( (unit)arg1, (float)arg2) -> object

__pow__((unit)arg1, (float)arg2) object
__eq__((unit)arg1, (unit)arg2) object
__ne__((unit)arg1, (unit)arg2) object
property baseUnit
toDict((unit)arg1) dict
toJSON((unit)arg1) str
class quantity
__init__((object)arg1) None

__init__( (object)self, (float)value, (unit)unit) -> None

__neg__((quantity)arg1) object
__pos__((quantity)arg1) object
__add__((quantity)arg1, (quantity)arg2) object

__add__( (quantity)arg1, (float)arg2) -> object

__sub__((quantity)arg1, (quantity)arg2) object

__sub__( (quantity)arg1, (float)arg2) -> object

__mul__((quantity)arg1, (quantity)arg2) object

__mul__( (quantity)arg1, (unit)arg2) -> object

__mul__( (quantity)arg1, (float)arg2) -> object

__pow__((quantity)arg1, (quantity)arg2) object

__pow__( (quantity)arg1, (float)arg2) -> object

__eq__((quantity)arg1, (quantity)arg2) object

__eq__( (quantity)arg1, (float)arg2) -> object

__eq__( (quantity)arg1, (float)arg2) -> object

__ne__((quantity)arg1, (quantity)arg2) object

__ne__( (quantity)arg1, (float)arg2) -> object

__ne__( (quantity)arg1, (float)arg2) -> object

__lt__((quantity)arg1, (quantity)arg2) object

__lt__( (quantity)arg1, (float)arg2) -> object

__lt__( (quantity)arg1, (float)arg2) -> object

__le__((quantity)arg1, (quantity)arg2) object

__le__( (quantity)arg1, (float)arg2) -> object

__le__( (quantity)arg1, (float)arg2) -> object

__gt__((quantity)arg1, (quantity)arg2) object

__gt__( (quantity)arg1, (float)arg2) -> object

__gt__( (quantity)arg1, (float)arg2) -> object

__ge__((quantity)arg1, (quantity)arg2) object

__ge__( (quantity)arg1, (float)arg2) -> object

__ge__( (quantity)arg1, (float)arg2) -> object

scaleTo((quantity)self, (object)referrer) quantity
toDict((quantity)arg1) dict
toJSON((quantity)arg1) str
property units
property value
property valueInSIUnits