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
PdgApiobject.
Submodules
- pdg.api module
PdgApiPdgApi.default_editionPdgApi.doc_data_type_keys()PdgApi.doc_item_type_keys()PdgApi.doc_key_value()PdgApi.doc_value_type_keys()PdgApi.editionsPdgApi.get()PdgApi.get_all()PdgApi.get_canonical_name()PdgApi.get_particle_by_mcid()PdgApi.get_particle_by_name()PdgApi.get_particles()PdgApi.get_particles_by_name()PdgApi.info()PdgApi.info_keys()
- pdg.data module
PdgConvertedValuePdgDataPdgLifetimePdgMassPdgPropertyPdgProperty.best_summary()PdgProperty.commentPdgProperty.confidence_levelPdgProperty.display_value_textPdgProperty.errorPdgProperty.error_negativePdgProperty.error_positivePdgProperty.get_measurements()PdgProperty.has_best_summary()PdgProperty.is_limitPdgProperty.n_summary_table_values()PdgProperty.num_measurementsPdgProperty.scale_factorPdgProperty.summary_values()PdgProperty.unitsPdgProperty.valuePdgProperty.value_text
PdgSummaryValuePdgSummaryValue.commentPdgSummaryValue.confidence_levelPdgSummaryValue.descriptionPdgSummaryValue.display_in_percentPdgSummaryValue.display_power_of_tenPdgSummaryValue.display_value_textPdgSummaryValue.errorPdgSummaryValue.error_negativePdgSummaryValue.error_positivePdgSummaryValue.get_error()PdgSummaryValue.get_error_negative()PdgSummaryValue.get_error_positive()PdgSummaryValue.get_value()PdgSummaryValue.in_summary_tablePdgSummaryValue.is_limitPdgSummaryValue.is_lower_limitPdgSummaryValue.is_upper_limitPdgSummaryValue.pdgidPdgSummaryValue.pprint()PdgSummaryValue.scale_factorPdgSummaryValue.unitsPdgSummaryValue.valuePdgSummaryValue.value_textPdgSummaryValue.value_typePdgSummaryValue.value_type_key
PdgTextPdgWidth
- pdg.decay module
- pdg.errors module
- pdg.measurement module
PdgFootnotePdgMeasurementPdgReferencePdgValuePdgValue.column_namePdgValue.column_name_texPdgValue.display_in_percentPdgValue.display_power_of_tenPdgValue.display_value_textPdgValue.errorPdgValue.error_negativePdgValue.error_positivePdgValue.is_limitPdgValue.is_lower_limitPdgValue.is_upper_limitPdgValue.measurementPdgValue.stat_errorPdgValue.stat_error_negativePdgValue.stat_error_positivePdgValue.syst_errorPdgValue.syst_error_negativePdgValue.syst_error_positivePdgValue.unit_textPdgValue.used_in_averagePdgValue.used_in_fitPdgValue.valuePdgValue.value_text
- pdg.particle module
PdgItemPdgParticlePdgParticle.antiparticlePdgParticle.best()PdgParticle.branching_fractions()PdgParticle.chargePdgParticle.cp_chargePdgParticle.exclusive_branching_fractions()PdgParticle.has_lifetime_entryPdgParticle.has_mass_entryPdgParticle.has_width_entryPdgParticle.inclusive_branching_fractions()PdgParticle.is_baryonPdgParticle.is_bosonPdgParticle.is_leptonPdgParticle.is_mesonPdgParticle.is_quarkPdgParticle.lifetimePdgParticle.lifetime_errorPdgParticle.lifetime_measurements()PdgParticle.lifetimes()PdgParticle.massPdgParticle.mass_errorPdgParticle.mass_measurements()PdgParticle.masses()PdgParticle.mcidPdgParticle.namePdgParticle.properties()PdgParticle.quantum_CPdgParticle.quantum_GPdgParticle.quantum_IPdgParticle.quantum_JPdgParticle.quantum_PPdgParticle.self_conjugatePdgParticle.widthPdgParticle.width_errorPdgParticle.width_measurements()PdgParticle.widths()
PdgParticleList
- pdg.units module
- pdg.utils module