convert
New in version 0.35.0.
Convert Module
- class ooodev.units.convert.Converter(lo_inst=None)[source]
Converter Class.
Converts from one unit to another. The underlying function is
CONVERT
.All Conversion units are available as Enums. For example,
UnitAreaKind
,UnitLengthKind
, etc.Note that
CONVERT
is the same function as in Calc.See also
New in version 0.35.0.
- Parameters:
lo_inst (LoInst | None) –
- __init__(lo_inst=None)[source]
Constructor
- Parameters:
lo_inst (LoInst) – Lo Instance. This instance is used to create
component
is it is not provided.- Return type:
None
Note
component
is automatically created fromlo_inst
if it is not provided.
- call_function(name, *args)
Calls a function and returns the result of the call.
Each element must be of one of the following types:
Possible types for the result are:
int
orfloat
for a numeric value.str
for a string value.Tuple[Tuple[int,...], ...]
orTuple[Tuple[float, ...], ...]
for an array of numeric values.Tuple[[str, ...], ...]
for an array of string values.Tuple[[Any, ...], ...]
for a mixed array, where each element must be ofNone
,int
,float
orstr
type.
- Raises:
com.sun.star.container.NoSuchElementException –
NoSuchElementException
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
- Returns:
the result of the function call.
- Return type:
Any
- Parameters:
name (str) –
args (Any) –
Note
Possible types for the result are:
None
if no result is available.float
for a numeric result.str
for a string result.Tuple[[Any, …], …] for an array result, containing
float
andstr
values.
- convert(val, frm, to)[source]
Converts a value from one unit to another.
- Parameters:
val (Any) – The value to be converted.
frm (str) – The unit to convert from.
to (str) – The unit to convert to.
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
Any
- convert_area(num, fm, to)[source]
Converts area from one unit to another.
- Parameters:
fm (UnitAreaKind) – Enum values, from unit.
to (UnitAreaKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitAreaKind
can be imported fromooodev.units.convert
.
- convert_energy(num, fm, to)[source]
Converts energy from one unit to another.
- Parameters:
fm (UnitEnergyKind) – Enum values, from unit.
to (UnitEnergyKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitEnergyKind
can be imported fromooodev.units.convert
.
- convert_flux_density(num, fm, to)[source]
Converts flux density from one unit to another.
- Parameters:
fm (UnitFluxDensityKind) – Enum values, from unit.
to (UnitFluxDensityKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitFluxDensityKind
can be imported fromooodev.units.convert
.
- convert_force(num, fm, to)[source]
Converts force from one unit to another.
- Parameters:
fm (UnitForceKind) – Enum values, from unit.
to (UnitForceKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitForceKind
can be imported fromooodev.units.convert
.
- convert_info(num, fm, to)[source]
Converts info from one unit to another.
- Parameters:
fm (UnitInfoKind) – Enum values, from unit.
to (UnitInfoKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitInfoKind
can be imported fromooodev.units.convert
.
- convert_length(num, fm, to)[source]
Converts length from one unit to another.
- Parameters:
fm (UnitLengthKind) – Enum values, from unit.
to (UnitLengthKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitLengthKind
can be imported fromooodev.units.convert
.
- convert_power(num, fm, to)[source]
Converts power from one unit to another.
- Parameters:
fm (UnitPowerKind) – Enum values, from unit.
to (UnitPowerKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitPowerKind
can be imported fromooodev.units.convert
.
- convert_pressure(num, fm, to)[source]
Converts pressure from one unit to another.
- Parameters:
fm (UnitPressureKind) – Enum values, from unit.
to (UnitPressureKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitPressureKind
can be imported fromooodev.units.convert
.
- convert_speed(num, fm, to)[source]
Converts speed from one unit to another.
- Parameters:
fm (UnitSpeedKind) – Enum values, from unit.
to (UnitSpeedKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitSpeedKind
can be imported fromooodev.units.convert
.
- convert_temp(num, fm, to)[source]
Converts temperature from one unit to another.
- Parameters:
fm (UnitTempKind) – Enum values, from unit.
to (UnitTempKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitTempKind
can be imported fromooodev.units.convert
.
- convert_time(num, fm, to)[source]
Converts time from one unit to another.
- Parameters:
fm (UnitTimeKind) – Enum values, from unit.
to (UnitTimeKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitTimeKind
can be imported fromooodev.units.convert
.
- convert_volume(num, fm, to)[source]
Converts volume from one unit to another.
- Parameters:
fm (UnitVolumeKind) – Enum values, from unit.
to (UnitVolumeKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitVolumeKind
can be imported fromooodev.units.convert
.
- convert_weight(num, fm, to)[source]
Converts weight from one unit to another.
- Parameters:
fm (UnitWeightKind) – Enum values, from unit.
to (UnitWeightKind) – Enum value, to unit.
num (int | float) –
- Raises:
ConvertError – If the conversion fails.
- Returns:
The converted value.
- Return type:
float
Hint
UnitWeightKind
can be imported fromooodev.units.convert
.
- property component: com.sun.star.sheet.FunctionAccess
FunctionAccess Component
- Return type:
FunctionAccess
- class ooodev.units.convert.UnitAreaKind(value)[source]
Area units
- ACRE_INTERNATIONAL = 'uk_acre'
acre (international)
- ACRE_US = 'us_acre'
acre (US)
- ARE = 'ar'
are
- ARE_ATTO = 'aar'
atto Are 10/-18
- ARE_CENTI = 'car'
centi Are 10/-2
- ARE_DECA = 'ear'
deca Are 10/1
- ARE_DECI = 'dar'
deci Are 10/-1
- ARE_EXA = 'Ear'
exa 10/18
- ARE_FEMTO = 'far'
femto Are 10/-15
- ARE_GIGA = 'Gar'
giga Are 10/9
- ARE_HECTO = 'har'
hecto Are 10/2
- ARE_KILO = 'kar'
kilo Are 10/3
- ARE_MEGA = 'Mar'
mega Are 10/6
- ARE_MICRO = 'uar'
micro Are 10/-6
- ARE_MILLI = 'mar'
milli Are 10/-3
- ARE_NANO = 'nar'
nano Are 10/-9
- ARE_PETA = 'Par'
peta Are 10/15
- ARE_PICO = 'par'
pico Are 10/-12
- ARE_TERA = 'Tar'
tera Are 10/12
- ARE_YOCTO = 'yar'
yocto Are 10/-24
- ARE_YOTTA = 'Yar'
yotta Are 10/24
- ARE_ZEPTO = 'zar'
zepto Are 10/-21
- ARE_ZETTA = 'Zar'
zetta Are 10/21
- ARMSTRONG_SQ = 'ang2'
square Armstrong
- FOOT_SQ = 'ft2'
square foot
- HECTARE = 'ha'
hectare
- INCH_SQ = 'in2'
square inch
- LIGHT_YEAR_SQ = 'ly2'
square light year
- MILE_INTERNATIONAL_SQ = 'mi2'
square mile (international)
- MILE_NAUTICAL_SQ = 'Nmi2'
square mile (nautical)
- MORGEN = 'Morgen'
Morgen
- PICA_POINT_SQ = 'Pica2'
square pica point
- YARD_SQ = 'yd2'
square yard
- class ooodev.units.convert.UnitEnergyKind(value)[source]
Energy units
- BTU = 'BTU'
British Thermal Unit
- CALORIE_INT = 'cal'
International Steam Table calorie
- CALORIE_INT_ATTO = 'acal'
atto International Steam Table calorie 10/-18
- CALORIE_INT_CENTI = 'ccal'
centi International Steam Table calorie 10/-2
- CALORIE_INT_DECA = 'ecal'
deca International Steam Table calorie 10/1
- CALORIE_INT_DECI = 'dcal'
deci International Steam Table calorie 10/-1
- CALORIE_INT_EXA = 'Ecal'
exa 10/18
- CALORIE_INT_FEMTO = 'fcal'
femto International Steam Table calorie 10/-15
- CALORIE_INT_GIGA = 'Gcal'
giga International Steam Table calorie 10/9
- CALORIE_INT_HECTO = 'hcal'
hecto International Steam Table calorie 10/2
- CALORIE_INT_KILO = 'kcal'
kilo International Steam Table calorie 10/3
- CALORIE_INT_MEGA = 'Mcal'
mega International Steam Table calorie 10/6
- CALORIE_INT_MICRO = 'ucal'
micro International Steam Table calorie 10/-6
- CALORIE_INT_MILLI = 'mcal'
milli International Steam Table calorie 10/-3
- CALORIE_INT_NANO = 'ncal'
nano International Steam Table calorie 10/-9
- CALORIE_INT_PETA = 'Pcal'
peta International Steam Table calorie 10/15
- CALORIE_INT_PICO = 'pcal'
pico International Steam Table calorie 10/-12
- CALORIE_INT_TERA = 'Tcal'
tera International Steam Table calorie 10/12
- CALORIE_INT_YOCTO = 'ycal'
yocto International Steam Table calorie 10/-24
- CALORIE_INT_YOTTA = 'Ycal'
yotta International Steam Table calorie 10/24
- CALORIE_INT_ZEPTO = 'zcal'
zepto International Steam Table calorie 10/-21
- CALORIE_INT_ZETTA = 'Zcal'
zetta International Steam Table calorie 10/21
- CALORIE_THERMO = 'c'
Thermochemicial calorie
- CALORIE_THERMO_ATTO = 'ac'
atto Thermochemicial calorie 10/-18
- CALORIE_THERMO_CENTI = 'cc'
centi Thermochemicial calorie 10/-2
- CALORIE_THERMO_DECA = 'ec'
deca Thermochemicial calorie 10/1
- CALORIE_THERMO_DECI = 'dc'
deci Thermochemicial calorie 10/-1
- CALORIE_THERMO_EXA = 'Ec'
exa 10/18
- CALORIE_THERMO_FEMTO = 'fc'
femto Thermochemicial calorie 10/-15
- CALORIE_THERMO_GIGA = 'Gc'
giga Thermochemicial calorie 10/9
- CALORIE_THERMO_HECTO = 'hc'
hecto Thermochemicial calorie 10/2
- CALORIE_THERMO_KILO = 'kc'
kilo Thermochemicial calorie 10/3
- CALORIE_THERMO_MEGA = 'Mc'
mega Thermochemicial calorie 10/6
- CALORIE_THERMO_MICRO = 'uc'
micro Thermochemicial calorie 10/-6
- CALORIE_THERMO_MILLI = 'mc'
milli Thermochemicial calorie 10/-3
- CALORIE_THERMO_NANO = 'nc'
nano Thermochemicial calorie 10/-9
- CALORIE_THERMO_PETA = 'Pc'
peta Thermochemicial calorie 10/15
- CALORIE_THERMO_TERA = 'Tc'
tera Thermochemicial calorie 10/12
- CALORIE_THERMO_YOCTO = 'yc'
yocto Thermochemicial calorie 10/-24
- CALORIE_THERMO_YOTTA = 'Yc'
yotta Thermochemicial calorie 10/24
- CALORIE_THERMO_ZEPTO = 'zc'
zepto Thermochemicial calorie 10/-21
- CALORIE_THERMO_ZETTA = 'Zc'
zetta Thermochemicial calorie 10/21
- ELECTRON_VOLT = 'eV'
erg 10/0
- ELECTRON_VOLT_ATTO = 'aeV'
atto erg 10/-18
- ELECTRON_VOLT_CENTI = 'ceV'
centi erg 10/-2
- ELECTRON_VOLT_DECA = 'eeV'
deca erg 10/1
- ELECTRON_VOLT_DECI = 'deV'
deci erg 10/-1
- ELECTRON_VOLT_EXA = 'EeV'
exa 10/18
- ELECTRON_VOLT_FEMTO = 'feV'
femto erg 10/-15
- ELECTRON_VOLT_GIGA = 'GeV'
giga erg 10/9
- ELECTRON_VOLT_HECTO = 'heV'
hecto erg 10/2
- ELECTRON_VOLT_KILO = 'keV'
kilo erg 10/3
- ELECTRON_VOLT_MEGA = 'MeV'
mega erg 10/6
- ELECTRON_VOLT_MICRO = 'ueV'
micro erg 10/-6
- ELECTRON_VOLT_MILLI = 'meV'
milli erg 10/-3
- ELECTRON_VOLT_NANO = 'neV'
nano erg 10/-9
- ELECTRON_VOLT_PETA = 'PeV'
peta erg 10/15
- ELECTRON_VOLT_PICO = 'peV'
pico erg 10/-12
- ELECTRON_VOLT_TERA = 'TeV'
tera erg 10/12
- ELECTRON_VOLT_YOCTO = 'yeV'
yocto erg 10/-24
- ELECTRON_VOLT_YOTTA = 'YeV'
yotta erg 10/24
- ELECTRON_VOLT_ZEPTO = 'zeV'
zepto erg 10/-21
- ELECTRON_VOLT_ZETTA = 'ZeV'
zetta erg 10/21
- ERG = 'e'
erg 10/0
- ERG_ATTO = 'ae'
atto erg 10/-18
- ERG_CENTI = 'ce'
centi erg 10/-2
- ERG_DECA = 'ee'
deca erg 10/1
- ERG_DECI = 'de'
deci erg 10/-1
- ERG_EXA = 'Ee'
exa 10/18
- ERG_FEMTO = 'fe'
femto erg 10/-15
- ERG_GIGA = 'Ge'
giga erg 10/9
- ERG_HECTO = 'he'
hecto erg 10/2
- ERG_KILO = 'ke'
kilo erg 10/3
- ERG_MEGA = 'Me'
mega erg 10/6
- ERG_MICRO = 'ue'
micro erg 10/-6
- ERG_MILLI = 'me'
milli erg 10/-3
- ERG_NANO = 'ne'
nano erg 10/-9
- ERG_PETA = 'Pe'
peta erg 10/15
- ERG_PICO = 'pe'
pico erg 10/-12
- ERG_TERA = 'Te'
tera erg 10/12
- ERG_YOCTO = 'ye'
yocto erg 10/-24
- ERG_YOTTA = 'Ye'
yotta erg 10/24
- ERG_ZEPTO = 'ze'
zepto erg 10/-21
- ERG_ZETTA = 'Ze'
zetta erg 10/21
- FT_POUND = 'flb'
foot-pound
- JOULE = 'J'
Joule 10/0
- JOULE_ATTO = 'aJ'
atto Joule 10/-18
- JOULE_CENTI = 'cJ'
centi Joule 10/-2
- JOULE_DECA = 'eJ'
deca Joule 10/1
- JOULE_DECI = 'dJ'
deci Joule 10/-1
- JOULE_EXA = 'EJ'
exa 10/18
- JOULE_FEMTO = 'fJ'
femto Joule 10/-15
- JOULE_GIGA = 'GJ'
giga Joule 10/9
- JOULE_HECTO = 'hJ'
hecto Joule 10/2
- JOULE_KILO = 'kJ'
kilo Joule 10/3
- JOULE_MEGA = 'MJ'
mega Joule 10/6
- JOULE_MICRO = 'uJ'
micro Joule 10/-6
- JOULE_MILLI = 'mJ'
milli Joule 10/-3
- JOULE_NANO = 'nJ'
nano Joule 10/-9
- JOULE_PETA = 'PJ'
peta Joule 10/15
- JOULE_PICO = 'pJ'
pico Joule 10/-12
- JOULE_TERA = 'TJ'
tera Joule 10/12
- JOULE_YOCTO = 'yJ'
yocto Joule 10/-24
- JOULE_YOTTA = 'YJ'
yotta Joule 10/24
- JOULE_ZEPTO = 'zJ'
zepto Joule 10/-21
- JOULE_ZETTA = 'ZJ'
zetta Joule 10/21
- WATT_HOUR = 'Wh'
Watt-hour 10/0
- WATT_HOUR_ATTO = 'aWh'
atto Watt-hour 10/-18
- WATT_HOUR_CENTI = 'cWh'
centi Watt-hour 10/-2
- WATT_HOUR_DECA = 'eWh'
deca Watt-hour 10/1
- WATT_HOUR_DECI = 'dWh'
deci Watt-hour 10/-1
- WATT_HOUR_EXA = 'EWh'
exa 10/18
- WATT_HOUR_FEMTO = 'fWh'
femto Watt-hour 10/-15
- WATT_HOUR_GIGA = 'GWh'
giga Watt-hour 10/9
- WATT_HOUR_HECTO = 'hWh'
hecto Watt-hour 10/2
- WATT_HOUR_KILO = 'kWh'
kilo Watt-hour 10/3
- WATT_HOUR_MEGA = 'MWh'
mega Watt-hour 10/6
- WATT_HOUR_MICRO = 'uWh'
micro Watt-hour 10/-6
- WATT_HOUR_MILLI = 'mWh'
milli Watt-hour 10/-3
- WATT_HOUR_NANO = 'nWh'
nano Watt-hour 10/-9
- WATT_HOUR_PETA = 'PWh'
peta Watt-hour 10/15
- WATT_HOUR_PICO = 'pWh'
pico Watt-hour 10/-12
- WATT_HOUR_TERA = 'TWh'
tera Watt-hour 10/12
- WATT_HOUR_YOCTO = 'yWh'
yocto Watt-hour 10/-24
- WATT_HOUR_YOTTA = 'YWh'
yotta Watt-hour 10/24
- WATT_HOUR_ZEPTO = 'zWh'
zepto Watt-hour 10/-21
- WATT_HOUR_ZETTA = 'ZWh'
zetta Watt-hour 10/21
- class ooodev.units.convert.UnitFluxDensityKind(value)[source]
Flux Density units
- GAUSS = 'ga'
Gauss 10/0
- GAUSS_ATTO = 'aga'
atto Gauss 10/-18
- GAUSS_CENTI = 'cga'
centi Gauss 10/-2
- GAUSS_DECA = 'ega'
deca Gauss 10/1
- GAUSS_DECI = 'dga'
deci Gauss 10/-1
- GAUSS_EXA = 'Ega'
exa 10/18
- GAUSS_FEMTO = 'fga'
femto Gauss 10/-15
- GAUSS_GIGA = 'Gga'
giga Gauss 10/9
- GAUSS_HECTO = 'hga'
hecto Gauss 10/2
- GAUSS_KILO = 'kga'
kilo Gauss 10/3
- GAUSS_MEGA = 'Mga'
mega Gauss 10/6
- GAUSS_MICRO = 'uga'
micro Gauss 10/-6
- GAUSS_MILLI = 'mga'
milli Gauss 10/-3
- GAUSS_NANO = 'nga'
nano Gauss 10/-9
- GAUSS_PETA = 'Pga'
peta Gauss 10/15
- GAUSS_PICO = 'pga'
pico Gauss 10/-12
- GAUSS_TERA = 'Tga'
tera Gauss 10/12
- GAUSS_YOCTO = 'yga'
yocto Gauss 10/-24
- GAUSS_YOTTA = 'Yga'
yotta Gauss 10/24
- GAUSS_ZEPTO = 'zga'
zepto Gauss 10/-21
- GAUSS_ZETTA = 'Zga'
zetta Gauss 10/21
- TESLA = 'T'
Tesla 10/0
- TESLA_ATTO = 'aT'
atto Tesla 10/-18
- TESLA_CENTI = 'cT'
centi Tesla 10/-2
- TESLA_DECA = 'eT'
deca Tesla 10/1
- TESLA_DECI = 'dT'
deci Tesla 10/-1
- TESLA_EXA = 'ET'
exa 10/18
- TESLA_FEMTO = 'fT'
femto Tesla 10/-15
- TESLA_GIGA = 'GT'
giga Tesla 10/9
- TESLA_HECTO = 'hT'
hecto Tesla 10/2
- TESLA_KILO = 'kT'
kilo Tesla 10/3
- TESLA_MEGA = 'MT'
mega Tesla 10/6
- TESLA_MICRO = 'uT'
micro Tesla 10/-6
- TESLA_MILLI = 'mT'
milli Tesla 10/-3
- TESLA_NANO = 'nT'
nano Tesla 10/-9
- TESLA_PETA = 'PT'
peta Tesla 10/15
- TESLA_PICO = 'pT'
pico Tesla 10/-12
- TESLA_TERA = 'TT'
tera Tesla 10/12
- TESLA_YOCTO = 'yT'
yocto Tesla 10/-24
- TESLA_YOTTA = 'YT'
yotta Tesla 10/24
- TESLA_ZEPTO = 'zT'
zepto Tesla 10/-21
- TESLA_ZETTA = 'ZT'
zetta Tesla 10/21
- class ooodev.units.convert.UnitForceKind(value)[source]
Force units
- DYNE = 'dyn'
Dyne 10/0
- DYNE_ATTO = 'adyn'
atto Dyne 10/-18
- DYNE_CENTI = 'cdyn'
centi Dyne 10/-2
- DYNE_DECA = 'edyn'
deca Dyne 10/1
- DYNE_DECI = 'ddyn'
deci Dyne 10/-1
- DYNE_EXA = 'Edyn'
exa 10/18
- DYNE_FEMTO = 'fdyn'
femto Dyne 10/-15
- DYNE_GIGA = 'Gdyn'
giga Dyne 10/9
- DYNE_HECTO = 'hdyn'
hecto Dyne 10/2
- DYNE_KILO = 'kdyn'
kilo Dyne 10/3
- DYNE_MEGA = 'Mdyn'
mega Dyne 10/6
- DYNE_MICRO = 'udyn'
micro Dyne 10/-6
- DYNE_MILLI = 'mdyn'
milli Dyne 10/-3
- DYNE_NANO = 'ndyn'
nano Dyne 10/-9
- DYNE_PETA = 'Pdyn'
peta Dyne 10/15
- DYNE_PICO = 'pdyn'
pico Dyne 10/-12
- DYNE_TERA = 'Tdyn'
tera Dyne 10/12
- DYNE_YOCTO = 'ydyn'
yocto Dyne 10/-24
- DYNE_YOTTA = 'Ydyn'
yotta Dyne 10/24
- DYNE_ZEPTO = 'zdyn'
zepto Dyne 10/-21
- DYNE_ZETTA = 'Zdyn'
zetta Dyne 10/21
- NEWTON = 'N'
Newton 10/0
- NEWTON_ATTO = 'aN'
atto Newton 10/-18
- NEWTON_CENTI = 'cN'
centi Newton 10/-2
- NEWTON_DECA = 'eN'
deca Newton 10/1
- NEWTON_DECI = 'dN'
deci Newton 10/-1
- NEWTON_EXA = 'EN'
exa 10/18
- NEWTON_FEMTO = 'fN'
femto Newton 10/-15
- NEWTON_GIGA = 'GN'
giga Newton 10/9
- NEWTON_HECTO = 'hN'
hecto Newton 10/2
- NEWTON_KILO = 'kN'
kilo Newton 10/3
- NEWTON_MEGA = 'MN'
mega Newton 10/6
- NEWTON_MICRO = 'uN'
micro Newton 10/-6
- NEWTON_MILLI = 'mN'
milli Newton 10/-3
- NEWTON_NANO = 'nN'
nano Newton 10/-9
- NEWTON_PETA = 'PN'
peta Newton 10/15
- NEWTON_PICO = 'pN'
pico Newton 10/-12
- NEWTON_TERA = 'TN'
tera Newton 10/12
- NEWTON_YOCTO = 'yN'
yocto Newton 10/-24
- NEWTON_YOTTA = 'YN'
yotta Newton 10/24
- NEWTON_ZEPTO = 'zN'
zepto Newton 10/-21
- NEWTON_ZETTA = 'ZN'
zetta Newton 10/21
- POND = 'pond'
Pond 10/0
- POND_ATTO = 'apond'
atto Pond 10/-18
- POND_CENTI = 'cpond'
centi Pond 10/-2
- POND_DECA = 'epond'
deca Pond 10/1
- POND_DECI = 'dpond'
deci Pond 10/-1
- POND_EXA = 'Epond'
exa 10/18
- POND_FEMTO = 'fpond'
femto Pond 10/-15
- POND_GIGA = 'Gpond'
giga Pond 10/9
- POND_HECTO = 'hpond'
hecto Pond 10/2
- POND_KILO = 'kpond'
kilo Pond 10/3
- POND_MEGA = 'Mpond'
mega Pond 10/6
- POND_MICRO = 'upond'
micro Pond 10/-6
- POND_MILLI = 'mpond'
milli Pond 10/-3
- POND_NANO = 'npond'
nano Pond 10/-9
- POND_PETA = 'Ppond'
peta Pond 10/15
- POND_PICO = 'ppond'
pico Pond 10/-12
- POND_TERA = 'Tpond'
tera Pond 10/12
- POND_YOCTO = 'ypond'
yocto Pond 10/-24
- POND_YOTTA = 'Ypond'
yotta Pond 10/24
- POND_ZEPTO = 'zpond'
zepto Pond 10/-21
- POND_ZETTA = 'Zpond'
zetta Pond 10/21
- POUND_FORCE = 'lbf'
pound force 10/0
- class ooodev.units.convert.UnitInfoKind(value)[source]
Information units
- BIT = 'bit'
Bit 2/0
- BIT_EXBI = 'Eibit'
exbi Bit 2/60
- BIT_GIBI = 'Gibit'
gibi Bit 2/30
- BIT_KIBI = 'kibit'
kibi Bit 2/10
- BIT_MEBI = 'Mibit'
mebi Bit 2/20
- BIT_PEBI = 'Pibit'
pebi Bit 2/50
- BIT_TEBI = 'Tibit'
tebi Bit 2/40
- BIT_YOBI = 'Yibit'
yobi Bit 2/80
- BIT_ZEBI = 'Zibit'
zebi Bit 2/70
- BYTE = 'byte'
Byte 2/0
- BYTE_EXBI = 'Eibyte'
exbi Byte 2/60
- BYTE_GIBI = 'Gibyte'
gibi Byte 2/30
- BYTE_KIBI = 'kibyte'
kibi Byte 2/10
- BYTE_MEBI = 'Mibyte'
mebi Byte 2/20
- BYTE_PEBI = 'Pibyte'
pebi Byte 2/50
- BYTE_TEBI = 'Tibyte'
tebi Byte 2/40
- BYTE_YOBI = 'Yibyte'
yobi Byte 2/80
- BYTE_ZEBI = 'Zibyte'
zebi Byte 2/70
- class ooodev.units.convert.UnitLengthKind(value)[source]
Length units
- ANG = 'ang'
ang
- ANG_ATTO = 'aang'
atto Angstrom 10/-18
- ANG_CENTI = 'cang'
centi Angstrom 10/-2
- ANG_DECA = 'eang'
deca Angstrom 10/1
- ANG_DECI = 'dang'
deci Angstrom 10/-1
- ANG_EXA = 'Eang'
exa 10/18
- ANG_FEMTO = 'fang'
femto Angstrom 10/-15
- ANG_GIGA = 'Gang'
giga Angstrom 10/9
- ANG_HECTO = 'hang'
hecto Angstrom 10/2
- ANG_KILO = 'kang'
kilo Angstrom 10/3
- ANG_MEGA = 'Mang'
mega Angstrom 10/6
- ANG_MICRO = 'uang'
micro Angstrom 10/-6
- ANG_MILLI = 'mang'
milli Angstrom 10/-3
- ANG_NANO = 'nang'
nano Angstrom 10/-9
- ANG_PETA = 'Pang'
peta Angstrom 10/15
- ANG_PICO = 'pang'
pico Angstrom 10/-12
- ANG_TERA = 'Tang'
tera Angstrom 10/12
- ANG_YOCTO = 'yang'
yocto Angstrom 10/-24
- ANG_YOTTA = 'Yang'
yotta Angstrom 10/24
- ANG_ZEPTO = 'zang'
zepto Angstrom 10/-21
- ANG_ZETTA = 'Zang'
zetta Angstrom 10/21
- CM = 'cm'
centi-meter 10/-2
- ELL = 'ell'
ell
- IN = 'in'
inch
- KM = 'km'
kilo meter 10/3
- LIGHT_YEAR = 'ly'
Light-year
- LIGHT_YEAR_ATTO = 'aly'
atto Light-year 10/-18
- LIGHT_YEAR_CENTI = 'cly'
centi Light-year 10/-2
- LIGHT_YEAR_DECA = 'ely'
deca Light-year 10/1
- LIGHT_YEAR_DECI = 'dly'
deci Light-year 10/-1
- LIGHT_YEAR_EXA = 'Ely'
exa 10/18
- LIGHT_YEAR_FEMTO = 'fly'
femto Light-year 10/-15
- LIGHT_YEAR_GIGA = 'Gly'
giga Light-year 10/9
- LIGHT_YEAR_HECTO = 'hly'
hecto Light-year 10/2
- LIGHT_YEAR_KILO = 'kly'
kilo Light-year 10/3
- LIGHT_YEAR_MEGA = 'Mly'
mega Light-year 10/6
- LIGHT_YEAR_MICRO = 'uly'
micro Light-year 10/-6
- LIGHT_YEAR_MILLI = 'mly'
milli Light-year 10/-3
- LIGHT_YEAR_NANO = 'nly'
nano Light-year 10/-9
- LIGHT_YEAR_PETA = 'Ply'
peta Light-year 10/15
- LIGHT_YEAR_PICO = 'ply'
pico Light-year 10/-12
- LIGHT_YEAR_TERA = 'Tly'
tera Light-year 10/12
- LIGHT_YEAR_YOCTO = 'yly'
yocto Light-year 10/-24
- LIGHT_YEAR_YOTTA = 'Yly'
yotta Light-year 10/24
- LIGHT_YEAR_ZEPTO = 'zly'
zepto Light-year 10/-21
- LIGHT_YEAR_ZETTA = 'Zly'
zetta Light-year 10/21
- METER = 'm'
meter
- METER_ATTO = 'am'
atto meter 10/-18
- METER_CENTI = 'cm'
centi meter 10/-2
- METER_DECA = 'em'
deca meter 10/1
- METER_DECI = 'dm'
deci meter 10/-1
- METER_EXA = 'Em'
exa 10/18
- METER_FEMTO = 'fm'
femto meter 10/-15
- METER_GIGA = 'Gm'
giga meter 10/9
- METER_HECTO = 'hm'
hecto meter 10/2
- METER_KILO = 'km'
kilo meter 10/3
- METER_MEGA = 'Mm'
mega meter 10/6
- METER_MICRO = 'um'
micro meter 10/-6
- METER_MILLI = 'mm'
milli meter 10/-3
- METER_NANO = 'nm'
nano meter 10/-9
- METER_PETA = 'Pm'
peta meter 10/15
- METER_PICO = 'pm'
pico meter 10/-12
- METER_TERA = 'Tm'
tera meter 10/12
- METER_YOCTO = 'ym'
yocto meter 10/-24
- METER_YOTTA = 'Ym'
yotta meter 10/24
- METER_ZEPTO = 'zm'
zepto meter 10/-21
- METER_ZETTA = 'Zm'
zetta meter 10/21
- MILE_INTERNATIONAL = 'mi'
mile (international)
- MILE_NAUTICAL = 'Nmi'
mile (nautical)
- MILE_US_SURVEY = 'survey_mi'
mile (US survey)
- MM = 'mm'
milli meter 10/-3
- PARSEC = 'parsec'
parsec
- PARSEC_ATTO = 'aparsec'
atto parsec 10/-18
- PARSEC_CENTI = 'cparsec'
centi parsec 10/-2
- PARSEC_DECA = 'eparsec'
deca parsec 10/1
- PARSEC_DECI = 'dparsec'
deci parsec 10/-1
- PARSEC_EXA = 'Eparsec'
exa 10/18
- PARSEC_FEMTO = 'fparsec'
femto parsec 10/-15
- PARSEC_GIGA = 'Gparsec'
giga parsec 10/9
- PARSEC_HECTO = 'hparsec'
hecto parsec 10/2
- PARSEC_KILO = 'kparsec'
kilo parsec 10/3
- PARSEC_MEGA = 'Mparsec'
mega parsec 10/6
- PARSEC_MICRO = 'uparsec'
micro parsec 10/-6
- PARSEC_MILLI = 'mparsec'
milli parsec 10/-3
- PARSEC_NANO = 'nparsec'
nano parsec 10/-9
- PARSEC_PETA = 'Pparsec'
peta parsec 10/15
- PARSEC_PICO = 'pparsec'
pico parsec 10/-12
- PARSEC_TERA = 'Tparsec'
tera parsec 10/12
- PARSEC_YOCTO = 'yparsec'
yocto parsec 10/-24
- PARSEC_YOTTA = 'Yparsec'
yotta parsec 10/24
- PARSEC_ZEPTO = 'zparsec'
zepto parsec 10/-21
- PARSEC_ZETTA = 'Zparsec'
zetta parsec 10/21
- PICA = 'pica'
pica
- PICA_POINT = 'Pica'
pica point
- YARD = 'yd'
yard
- class ooodev.units.convert.UnitPowerKind(value)[source]
Power units
- HP = 'HP'
Horsepower 10/0
- PS = 'PS'
Pferdestärke or metric horsepower 10/0
- WATT = 'W'
Watt 10/0
- WATT_ATTO = 'aW'
atto Watt 10/-18
- WATT_CENTI = 'cW'
centi Watt 10/-2
- WATT_DECA = 'eW'
deca Watt 10/1
- WATT_DECI = 'dW'
deci Watt 10/-1
- WATT_EXA = 'EW'
exa 10/18
- WATT_FEMTO = 'fW'
femto Watt 10/-15
- WATT_GIGA = 'GW'
giga Watt 10/9
- WATT_HECTO = 'hW'
hecto Watt 10/2
- WATT_KILO = 'kW'
kilo Watt 10/3
- WATT_MEGA = 'MW'
mega Watt 10/6
- WATT_MICRO = 'uW'
micro Watt 10/-6
- WATT_MILLI = 'mW'
milli Watt 10/-3
- WATT_NANO = 'nW'
nano Watt 10/-9
- WATT_PETA = 'PW'
peta Watt 10/15
- WATT_PICO = 'pW'
pico Watt 10/-12
- WATT_TERA = 'TW'
tera Watt 10/12
- WATT_YOCTO = 'yW'
yocto Watt 10/-24
- WATT_YOTTA = 'YW'
yotta Watt 10/24
- WATT_ZEPTO = 'zW'
zepto Watt 10/-21
- WATT_ZETTA = 'ZW'
zetta Watt 10/21
- class ooodev.units.convert.UnitPressureKind(value)[source]
Pressure units
- ATM = 'atm'
Standard atmosphere 10/0
- ATM_ATTO = 'aatm'
atto Standard atmosphere 10/-18
- ATM_CENTI = 'catm'
centi Standard atmosphere 10/-2
- ATM_DECA = 'eatm'
deca Standard atmosphere 10/1
- ATM_DECI = 'datm'
deci Standard atmosphere 10/-1
- ATM_EXA = 'Eatm'
exa 10/18
- ATM_FEMTO = 'fatm'
femto Standard atmosphere 10/-15
- ATM_GIGA = 'Gatm'
giga Standard atmosphere 10/9
- ATM_HECTO = 'hatm'
hecto Standard atmosphere 10/2
- ATM_KILO = 'katm'
kilo Standard atmosphere 10/3
- ATM_MEGA = 'Matm'
mega Standard atmosphere 10/6
- ATM_MICRO = 'uatm'
micro Standard atmosphere 10/-6
- ATM_MILLI = 'matm'
milli Standard atmosphere 10/-3
- ATM_NANO = 'natm'
nano Standard atmosphere 10/-9
- ATM_PETA = 'Patm'
peta Standard atmosphere 10/15
- ATM_PICO = 'patm'
pico Standard atmosphere 10/-12
- ATM_TERA = 'Tatm'
tera Standard atmosphere 10/12
- ATM_YOCTO = 'yatm'
yocto Standard atmosphere 10/-24
- ATM_YOTTA = 'Yatm'
yotta Standard atmosphere 10/24
- ATM_ZEPTO = 'zatm'
zepto Standard atmosphere 10/-21
- ATM_ZETTA = 'Zatm'
zetta Standard atmosphere 10/21
- MM_HG = 'mmHg'
Millimeter of mercury 10/0
- MM_HG_ATTO = 'ammHg'
atto Millimeter of mercury 10/-18
- MM_HG_CENTI = 'cmmHg'
centi Millimeter of mercury 10/-2
- MM_HG_DECA = 'emmHg'
deca Millimeter of mercury 10/1
- MM_HG_DECI = 'dmmHg'
deci Millimeter of mercury 10/-1
- MM_HG_EXA = 'EmmHg'
exa 10/18
- MM_HG_FEMTO = 'fmmHg'
femto Millimeter of mercury 10/-15
- MM_HG_GIGA = 'GmmHg'
giga Millimeter of mercury 10/9
- MM_HG_HECTO = 'hmmHg'
hecto Millimeter of mercury 10/2
- MM_HG_KILO = 'kmmHg'
kilo Millimeter of mercury 10/3
- MM_HG_MEGA = 'MmmHg'
mega Millimeter of mercury 10/6
- MM_HG_MICRO = 'ummHg'
micro Millimeter of mercury 10/-6
- MM_HG_MILLI = 'mmmHg'
milli Millimeter of mercury 10/-3
- MM_HG_NANO = 'nmmHg'
nano Millimeter of mercury 10/-9
- MM_HG_PETA = 'PmmHg'
peta Millimeter of mercury 10/15
- MM_HG_PICO = 'pmmHg'
pico Millimeter of mercury 10/-12
- MM_HG_TERA = 'TmmHg'
tera Millimeter of mercury 10/12
- MM_HG_YOCTO = 'ymmHg'
yocto Millimeter of mercury 10/-24
- MM_HG_YOTTA = 'YmmHg'
yotta Millimeter of mercury 10/24
- MM_HG_ZEPTO = 'zmmHg'
zepto Millimeter of mercury 10/-21
- MM_HG_ZETTA = 'ZmmHg'
zetta Millimeter of mercury 10/21
- PASCAL = 'Pa'
Pascal 10/0
- PASCAL_ATTO = 'aPa'
atto Pascal 10/-18
- PASCAL_CENTI = 'cPa'
centi Pascal 10/-2
- PASCAL_DECA = 'ePa'
deca Pascal 10/1
- PASCAL_DECI = 'dPa'
deci Pascal 10/-1
- PASCAL_EXA = 'EPa'
exa 10/18
- PASCAL_FEMTO = 'fPa'
femto Pascal 10/-15
- PASCAL_GIGA = 'GPa'
giga Pascal 10/9
- PASCAL_HECTO = 'hPa'
hecto Pascal 10/2
- PASCAL_KILO = 'kPa'
kilo Pascal 10/3
- PASCAL_MEGA = 'MPa'
mega Pascal 10/6
- PASCAL_MICRO = 'uPa'
micro Pascal 10/-6
- PASCAL_MILLI = 'mPa'
milli Pascal 10/-3
- PASCAL_NANO = 'nPa'
nano Pascal 10/-9
- PASCAL_PETA = 'PPa'
peta Pascal 10/15
- PASCAL_PICO = 'pPa'
pico Pascal 10/-12
- PASCAL_TERA = 'TPa'
tera Pascal 10/12
- PASCAL_YOCTO = 'yPa'
yocto Pascal 10/-24
- PASCAL_YOTTA = 'YPa'
yotta Pascal 10/24
- PASCAL_ZEPTO = 'zPa'
zepto Pascal 10/-21
- PASCAL_ZETTA = 'ZPa'
zetta Pascal 10/21
- PSI = 'psi'
Pound-force per square inch 10/0
- TORR = 'Torr'
Torr 10/0
- class ooodev.units.convert.UnitSpeedKind(value)[source]
Speed units
- KNOT = 'kn'
Knot (international) 10/0
- KNOT_ADMIRALTY = 'admkn'
Admiralty knot 10/0
- METER_PH = 'm/h'
Meters per hour 10/0
- METER_PH_ATTO = 'am/h'
atto Meters per hour 10/-18
- METER_PH_CENTI = 'cm/h'
centi Meters per hour 10/-2
- METER_PH_DECA = 'em/h'
deca Meters per hour 10/1
- METER_PH_DECI = 'dm/h'
deci Meters per hour 10/-1
- METER_PH_EXA = 'Em/h'
exa 10/18
- METER_PH_FEMTO = 'fm/h'
femto Meters per hour 10/-15
- METER_PH_GIGA = 'Gm/h'
giga Meters per hour 10/9
- METER_PH_HECTO = 'hm/h'
hecto Meters per hour 10/2
- METER_PH_KILO = 'km/h'
kilo Meters per hour 10/3
- METER_PH_MEGA = 'Mm/h'
mega Meters per hour 10/6
- METER_PH_MICRO = 'um/h'
micro Meters per hour 10/-6
- METER_PH_MILLI = 'mm/h'
milli Meters per hour 10/-3
- METER_PH_NANO = 'nm/h'
nano Meters per hour 10/-9
- METER_PH_PETA = 'Pm/h'
peta Meters per hour 10/15
- METER_PH_PICO = 'pm/h'
pico Meters per hour 10/-12
- METER_PH_TERA = 'Tm/h'
tera Meters per hour 10/12
- METER_PH_YOCTO = 'ym/h'
yocto Meters per hour 10/-24
- METER_PH_YOTTA = 'Ym/h'
yotta Meters per hour 10/24
- METER_PH_ZEPTO = 'zm/h'
zepto Meters per hour 10/-21
- METER_PH_ZETTA = 'Zm/h'
zetta Meters per hour 10/21
- METER_PS = 'm/s'
Meters per second 10/0
- METER_PS_ATTO = 'am/s'
atto Meters per second 10/-18
- METER_PS_CENTI = 'cm/s'
centi Meters per second 10/-2
- METER_PS_DECA = 'em/s'
deca Meters per second 10/1
- METER_PS_DECI = 'dm/s'
deci Meters per second 10/-1
- METER_PS_EXA = 'Em/s'
exa 10/18
- METER_PS_FEMTO = 'fm/s'
femto Meters per second 10/-15
- METER_PS_GIGA = 'Gm/s'
giga Meters per second 10/9
- METER_PS_HECTO = 'hm/s'
hecto Meters per second 10/2
- METER_PS_KILO = 'km/s'
kilo Meters per second 10/3
- METER_PS_MEGA = 'Mm/s'
mega Meters per second 10/6
- METER_PS_MICRO = 'um/s'
micro Meters per second 10/-6
- METER_PS_MILLI = 'mm/s'
milli Meters per second 10/-3
- METER_PS_NANO = 'nm/s'
nano Meters per second 10/-9
- METER_PS_PETA = 'Pm/s'
peta Meters per second 10/15
- METER_PS_PICO = 'pm/s'
pico Meters per second 10/-12
- METER_PS_TERA = 'Tm/s'
tera Meters per second 10/12
- METER_PS_YOCTO = 'ym/s'
yocto Meters per second 10/-24
- METER_PS_YOTTA = 'Ym/s'
yotta Meters per second 10/24
- METER_PS_ZEPTO = 'zm/s'
zepto Meters per second 10/-21
- METER_PS_ZETTA = 'Zm/s'
zetta Meters per second 10/21
- MILE_PH = 'mph'
Miles per hour 10/0
- MPH = 'mph'
Miles per hour 10/0
- class ooodev.units.convert.UnitTempKind(value)[source]
Temperature units
- C = 'C'
Celsius 10/0
- F = 'F'
Fahrenheit 10/0
- KELVIN = 'K'
Kelvin 10/0
- KELVIN_ATTO = 'aK'
atto Kelvin 10/-18
- KELVIN_CENTI = 'cK'
centi Kelvin 10/-2
- KELVIN_DECA = 'eK'
deca Kelvin 10/1
- KELVIN_DECI = 'dK'
deci Kelvin 10/-1
- KELVIN_EXA = 'EK'
exa 10/18
- KELVIN_FEMTO = 'fK'
femto Kelvin 10/-15
- KELVIN_GIGA = 'GK'
giga Kelvin 10/9
- KELVIN_HECTO = 'hK'
hecto Kelvin 10/2
- KELVIN_KILO = 'kK'
kilo Kelvin 10/3
- KELVIN_MEGA = 'MK'
mega Kelvin 10/6
- KELVIN_MICRO = 'uK'
micro Kelvin 10/-6
- KELVIN_MILLI = 'mK'
milli Kelvin 10/-3
- KELVIN_NANO = 'nK'
nano Kelvin 10/-9
- KELVIN_PETA = 'PK'
peta Kelvin 10/15
- KELVIN_PICO = 'pK'
pico Kelvin 10/-12
- KELVIN_TERA = 'TK'
tera Kelvin 10/12
- KELVIN_YOCTO = 'yK'
yocto Kelvin 10/-24
- KELVIN_YOTTA = 'YK'
yotta Kelvin 10/24
- KELVIN_ZEPTO = 'zK'
zepto Kelvin 10/-21
- KELVIN_ZETTA = 'ZK'
zetta Kelvin 10/21
- RANK = 'Rank'
Degrees Rankine 10/0
- REAU = 'Reau'
Degrees Reaumur 10/0
- class ooodev.units.convert.UnitTimeKind(value)[source]
Time units
- DAY = 'day'
Day 10/0
- HOUR = 'hr'
Hour 10/0
- MINUTE = 'mn'
Minute 10/0
- SEC = 'sec'
Second 10/0
- SEC_ATTO = 'asec'
atto Second 10/-18
- SEC_CENTI = 'csec'
centi Second 10/-2
- SEC_DECA = 'esec'
deca Second 10/1
- SEC_DECI = 'dsec'
deci Second 10/-1
- SEC_EXA = 'Esec'
exa 10/18
- SEC_FEMTO = 'fsec'
femto Second 10/-15
- SEC_GIGA = 'Gsec'
giga Second 10/9
- SEC_HECTO = 'hsec'
hecto Second 10/2
- SEC_KILO = 'ksec'
kilo Second 10/3
- SEC_MEGA = 'Msec'
mega Second 10/6
- SEC_MICRO = 'usec'
micro Second 10/-6
- SEC_MILLI = 'msec'
milli Second 10/-3
- SEC_NANO = 'nsec'
nano Second 10/-9
- SEC_PETA = 'Psec'
peta Second 10/15
- SEC_PICO = 'psec'
pico Second 10/-12
- SEC_TERA = 'Tsec'
tera Second 10/12
- SEC_YOCTO = 'ysec'
yocto Second 10/-24
- SEC_YOTTA = 'Ysec'
yotta Second 10/24
- SEC_ZEPTO = 'zsec'
zepto Second 10/-21
- SEC_ZETTA = 'Zsec'
zetta Second 10/21
- YEAR = 'yr'
Year 10/0
- class ooodev.units.convert.UnitVolumeKind(value)[source]
Volume units
- ANGSTROM = 'ang3'
Cubic angstrom 10/0
- ANGSTROM_ATTO = 'aang3'
atto Cubic angstrom 10/-18
- ANGSTROM_CENTI = 'cang3'
centi Cubic angstrom 10/-2
- ANGSTROM_DECA = 'eang3'
deca Cubic angstrom 10/1
- ANGSTROM_DECI = 'dang3'
deci Cubic angstrom 10/-1
- ANGSTROM_EXA = 'Eang3'
exa 10/18
- ANGSTROM_FEMTO = 'fang3'
femto Cubic angstrom 10/-15
- ANGSTROM_GIGA = 'Gang3'
giga Cubic angstrom 10/9
- ANGSTROM_HECTO = 'hang3'
hecto Cubic angstrom 10/2
- ANGSTROM_KILO = 'kang3'
kilo Cubic angstrom 10/3
- ANGSTROM_MEGA = 'Mang3'
mega Cubic angstrom 10/6
- ANGSTROM_MICRO = 'uang3'
micro Cubic angstrom 10/-6
- ANGSTROM_MILLI = 'mang3'
milli Cubic angstrom 10/-3
- ANGSTROM_NANO = 'nang3'
nano Cubic angstrom 10/-9
- ANGSTROM_PETA = 'Pang3'
peta Cubic angstrom 10/15
- ANGSTROM_PICO = 'pang3'
pico Cubic angstrom 10/-12
- ANGSTROM_TERA = 'Tang3'
tera Cubic angstrom 10/12
- ANGSTROM_YOCTO = 'yang3'
yocto Cubic angstrom 10/-24
- ANGSTROM_YOTTA = 'Yang3'
yotta Cubic angstrom 10/24
- ANGSTROM_ZEPTO = 'zang3'
zepto Cubic angstrom 10/-21
- ANGSTROM_ZETTA = 'Zang3'
zetta Cubic angstrom 10/21
- BARREL_OIL = 'barrel'
Oil barrel
- BUSHEL_US = 'bushel'
Bushel
- CUP_US = 'cup'
Cup
- FOOT_CUBIC = 'ft3'
Cubic foot
- GALLON_IMPERIAL = 'uk_gal'
Gallon (imperial)
- GALLON_US = 'gal'
Gallon
- GLASS = 'Glass'
Australian glass (200 milliliters)
- GRT = 'GRT'
Gross register tonnage
- HUMPEN = 'Humpen'
Humpen (500 milliliters)
- INCH_CUBIC = 'in3'
Cubic inch
- LIGHT_YEAR_CUBIC = 'ly3'
Cubic light year
- LITER = 'l'
Liter 10/0
- LITER_ATTO = 'al'
atto Liter 10/-18
- LITER_CENTI = 'cl'
centi Liter 10/-2
- LITER_DECA = 'el'
deca Liter 10/1
- LITER_DECI = 'dl'
deci Liter 10/-1
- LITER_EXA = 'El'
exa 10/18
- LITER_FEMTO = 'fl'
femto Liter 10/-15
- LITER_GIGA = 'Gl'
giga Liter 10/9
- LITER_HECTO = 'hl'
hecto Liter 10/2
- LITER_KILO = 'kl'
kilo Liter 10/3
- LITER_MEGA = 'Ml'
mega Liter 10/6
- LITER_MICRO = 'ul'
micro Liter 10/-6
- LITER_MILLI = 'ml'
milli Liter 10/-3
- LITER_NANO = 'nl'
nano Liter 10/-9
- LITER_PETA = 'Pl'
peta Liter 10/15
- LITER_PICO = 'pl'
pico Liter 10/-12
- LITER_TERA = 'Tl'
tera Liter 10/12
- LITER_YOCTO = 'yl'
yocto Liter 10/-24
- LITER_YOTTA = 'Yl'
yotta Liter 10/24
- LITER_ZEPTO = 'zl'
zepto Liter 10/-21
- LITER_ZETTA = 'Zl'
zetta Liter 10/21
- METER = 'm3'
Cubic meter 10/0
- METER_ATTO = 'am3'
atto Cubic meter 10/-18
- METER_CENTI = 'cm3'
centi Cubic meter 10/-2
- METER_DECA = 'em3'
deca Cubic meter 10/1
- METER_DECI = 'dm3'
deci Cubic meter 10/-1
- METER_EXA = 'Em3'
exa 10/18
- METER_FEMTO = 'fm3'
femto Cubic meter 10/-15
- METER_GIGA = 'Gm3'
giga Cubic meter 10/9
- METER_HECTO = 'hm3'
hecto Cubic meter 10/2
- METER_KILO = 'km3'
kilo Cubic meter 10/3
- METER_MEGA = 'Mm3'
mega Cubic meter 10/6
- METER_MICRO = 'um3'
micro Cubic meter 10/-6
- METER_MILLI = 'mm3'
milli Cubic meter 10/-3
- METER_NANO = 'nm3'
nano Cubic meter 10/-9
- METER_PETA = 'Pm3'
peta Cubic meter 10/15
- METER_PICO = 'pm3'
pico Cubic meter 10/-12
- METER_TERA = 'Tm3'
tera Cubic meter 10/12
- METER_YOCTO = 'ym3'
yocto Cubic meter 10/-24
- METER_YOTTA = 'Ym3'
yotta Cubic meter 10/24
- METER_ZEPTO = 'zm3'
zepto Cubic meter 10/-21
- METER_ZETTA = 'Zm3'
zetta Cubic meter 10/21
- MIDDY = 'Middy'
Australian middy (285 milliliters)
- MILE_CUBIC = 'mi3'
Cubic mile (international)
- MILE_NAUTICAL_CUBIC = 'Nmi3'
Cubic nautical mile
- MTON = 'MTON'
Measurement ton
- OZ = 'oz'
Fluid ounce (us)
- PICA_CUBIC = 'pica3'
Cubic pica
- PICA_POINT_CUBIC = 'Pica3'
Cubic pica point
- PINT = 'uk_pt'
Pint (imperial)
- PINT_US = 'pt'
Pint
- QUART_IMPERIAL = 'uk_qt'
Quart (imperial)
- QUART_US = 'qt'
Quart
- SCHOONER = 'Schooner'
Australian schooner (425 milliliters)
- SIX_PACK = 'Sixpack'
Six pack (2 liters)
- TBS = 'tbs'
Tablespoon (us)
- TEASPOON_METRIC = 'tspm'
Teaspoon (metric)
- TEASPOON_US = 'tsp'
Teaspoon (us)
- YARD_CUBIC = 'yd3'
Cubic yard
- class ooodev.units.convert.UnitWeightKind(value)[source]
Weight units
- GRAIN = 'grain'
Grain 10/0
- GRAM = 'g'
Gram 10/0
- GRAM_ATTO = 'ag'
atto Gram 10/-18
- GRAM_CENTI = 'cg'
centi Gram 10/-2
- GRAM_DECA = 'eg'
deca Gram 10/1
- GRAM_DECI = 'dg'
deci Gram 10/-1
- GRAM_EXA = 'Eg'
exa 10/18
- GRAM_FEMTO = 'fg'
femto Gram 10/-15
- GRAM_GIGA = 'Gg'
giga Gram 10/9
- GRAM_HECTO = 'hg'
hecto Gram 10/2
- GRAM_KILO = 'kg'
kilo Gram 10/3
- GRAM_MEGA = 'Mg'
mega Gram 10/6
- GRAM_MICRO = 'ug'
micro Gram 10/-6
- GRAM_MILLI = 'mg'
milli Gram 10/-3
- GRAM_NANO = 'ng'
nano Gram 10/-9
- GRAM_PETA = 'Pg'
peta Gram 10/15
- GRAM_PICO = 'pg'
pico Gram 10/-12
- GRAM_TERA = 'Tg'
tera Gram 10/12
- GRAM_YOCTO = 'yg'
yocto Gram 10/-24
- GRAM_YOTTA = 'Yg'
yotta Gram 10/24
- GRAM_ZEPTO = 'zg'
zepto Gram 10/-21
- GRAM_ZETTA = 'Zg'
zetta Gram 10/21
- HUNDRED_WEIGHT = 'cwt'
Hundred weight 10/0
- HUNDRED_WEIGHT_LONG = 'uk_cwt'
Hundred weight 10/0
- OUNCE = 'ozm'
Ounce mass 10/0
- PENNY_WEIGHT = 'pweight'
Penny weight 10/0
- POUND = 'lbm'
Pound mass 10/0
- SLUG = 'sg'
Slug 10/0
- STONE = 'stone'
Stone 10/0
- TON = 'ton'
Short Ton 10/0
- TON_LONG = 'uk_ton'
Long Ton 10/0
- UAMU = 'u'
Unified atomic mass unit 10/0
- UAMU_ATTO = 'au'
atto Unified atomic mass unit 10/-18
- UAMU_CENTI = 'cu'
centi Unified atomic mass unit 10/-2
- UAMU_DECA = 'eu'
deca Unified atomic mass unit 10/1
- UAMU_DECI = 'du'
deci Unified atomic mass unit 10/-1
- UAMU_EXA = 'Eu'
exa 10/18
- UAMU_FEMTO = 'fu'
femto Unified atomic mass unit 10/-15
- UAMU_GIGA = 'Gu'
giga Unified atomic mass unit 10/9
- UAMU_HECTO = 'hu'
hecto Unified atomic mass unit 10/2
- UAMU_KILO = 'ku'
kilo Unified atomic mass unit 10/3
- UAMU_MEGA = 'Mu'
mega Unified atomic mass unit 10/6
- UAMU_MICRO = 'uu'
micro Unified atomic mass unit 10/-6
- UAMU_MILLI = 'mu'
milli Unified atomic mass unit 10/-3
- UAMU_NANO = 'nu'
nano Unified atomic mass unit 10/-9
- UAMU_PETA = 'Pu'
peta Unified atomic mass unit 10/15
- UAMU_PICO = 'pu'
pico Unified atomic mass unit 10/-12
- UAMU_TERA = 'Tu'
tera Unified atomic mass unit 10/12
- UAMU_YOCTO = 'yu'
yocto Unified atomic mass unit 10/-24
- UAMU_YOTTA = 'Yu'
yotta Unified atomic mass unit 10/24
- UAMU_ZEPTO = 'zu'
zepto Unified atomic mass unit 10/-21
- UAMU_ZETTA = 'Zu'
zetta Unified atomic mass unit 10/21