Units
albert.resources.units
UnitCategory
UnitCategory is an enumeration of possible unit categories.
Attributes:
Name | Type | Description |
---|---|---|
LENGTH |
str
|
Represents length units. |
VOLUME |
str
|
Represents volume units. |
LIQUID_VOLUME |
str
|
Represents liquid volume units. |
ANGLES |
str
|
Represents angle units. |
TIME |
str
|
Represents time units. |
FREQUENCY |
str
|
Represents frequency units. |
MASS |
str
|
Represents mass units. |
CURRENT |
str
|
Represents electric current units. |
TEMPERATURE |
str
|
Represents temperature units. |
AMOUNT |
str
|
Represents amount of substance units. |
LUMINOSITY |
str
|
Represents luminous intensity units. |
FORCE |
str
|
Represents force units. |
ENERGY |
str
|
Represents energy units. |
POWER |
str
|
Represents power units. |
PRESSURE |
str
|
Represents pressure units. |
ELECTRICITY_AND_MAGNETISM |
str
|
Represents electricity and magnetism units. |
OTHER |
str
|
Represents other units. |
WEIGHT |
str
|
Represents weight units. |
Unit
Bases: BaseResource
Unit is a Pydantic model representing a unit entity.
Attributes:
Name | Type | Description |
---|---|---|
id |
str | None
|
The Albert ID of the unit. Set when the unit is retrieved from Albert. |
name |
str
|
The name of the unit. |
symbol |
str | None
|
The symbol of the unit. |
synonyms |
List[str] | None
|
The list of synonyms for the unit. |
category |
UnitCategory
|
The category of the unit. |
verified |
bool | None
|
Whether the unit is verified. |
status |
Status | None
|
The status of the unit. Allowed values are |