Python API Reference

Python API to access PDG data.

The Python package pdg provides access to the particle physics data published by the Particle Data Group (PDG) in the Review of Particle Physics.

For documentation see https://pdgapi.lbl.gov/doc.

For general information about PDG and the Review of Particle Physics please visit https://pdg.lbl.gov.

pdg.connect(database_url: str | None = None, pedantic: bool = False) PdgApi[source]

Connect to PDG database and return configured PDG API object.

Parameters:
  • database_url – SQLAlchemy-style URL of the PDG database. If None, the bundled SQLite file will be used.

  • pedantic – Whether to enable the API’s “pedantic” mode.

Returns:

A PdgApi object.

Submodules