pdg.utils module

Utilities for PDG API.

pdg.utils.base_id(pdgid)[source]

Return normalized base part of PDG Identifier.

pdg.utils.get_linked_ids(api, table_name, src_col, src_id, dest_col='id')[source]

Return iterator over all values of dest_col in the specified table for which src_col = src_id.

pdg.utils.get_row_data(api, table_name, row_id)[source]

Return dict built from the row of the specified table that has an id of row_id.

pdg.utils.make_id(baseid, edition=None)[source]

Return normalized full PDG Identifier, possibly including edition.

pdg.utils.parse_id(pdgid)[source]

Parse PDG Identifier and return (normalized base identifier, edition).

pdg.utils.pdg_round(value, error)[source]

Return (value, error) as numbers rounded following PDG rounding rules.