Skip to content

atomref.elements

Element identity is intentionally minimal in the current implementation: atomic number, symbol, and name. The module also contains the canonicalization helpers used throughout the package.

atomref.elements

Periodic-table access for stable element identity.

Element dataclass

Chemical element identity keyed by atomic number and symbol.

canonicalize_element_symbol(token)

Canonicalize a free-form token to a conventional element symbol.

The function accepts strings such as "cl", " Cl " or "Cl12" and returns "Cl" when a leading element-like token can be identified. Missing-value markers and non-element strings return None.

get_element(symbol)

Look up packaged element identity from a symbol-like token.

is_valid_element_symbol(symbol)

Return True if symbol is a known packaged element symbol.

iter_elements()

Return all packaged elements in increasing atomic-number order.