Hazards
albert.collections.hazards.HazardsCollection
Bases: BaseCollection
Fetch the platform's reference lists of GHS hazard symbols and statements.
Hazards are GHS (Globally Harmonized System) classifications used to describe
the dangers of a substance. This collection returns the two static reference
lists Albert maintains: the hazard pictogram symbols and the hazard
statements. These are the master lists you draw from when classifying
materials; the specific hazards recorded on a substance appear on its CAS
record (see Hazard).
This collection is read-only and accessed as client.hazards.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
AlbertSession
|
The authenticated Albert session used for API calls. |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
base_path |
str
|
The base API route for the static reference endpoints. |
Methods:
| Name | Description |
|---|---|
get_symbols |
Get all available hazard pictogram symbols. |
get_statements |
Get all available hazard statements. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
AlbertSession
|
The authenticated Albert session used for API calls. |
required |
Source code in src/albert/collections/hazards.py
get_symbols
get_symbols() -> list[HazardSymbol]
Get all available hazard pictogram symbols.
Returns:
| Type | Description |
|---|---|
list[HazardSymbol]
|
The full reference list of hazard symbols. |
Source code in src/albert/collections/hazards.py
get_statements
get_statements() -> list[HazardStatement]
Get all available hazard statements.
Returns:
| Type | Description |
|---|---|
list[HazardStatement]
|
The full reference list of hazard statements. |