1. Mass–Luminosity Calculator
We provide a Python script and an online calculator that enable users to compute mass–luminosity relations (MLRs), which can predict the minimum, maximum, and pure-helium (He) mass for a given luminosity and surface composition — and vice versa. These results are based on the stellar structure models presented in Sabhahit et al. (2025b) and build upon existing MLRs in the literature by incorporating models that feature a helium core and hydrogen shell. These configurations may result from partial envelope stripping and can break simple homology relations, appearing more luminous than pure-He stars despite having a lower mean molecular weight. A detailed description of our additional structure models by taking into account partial envelope stripping and the resulting new MLRs can be found here.
For comparison, we also provide a Python script implementing the minimum and maximum MLRs from Gräfener et al. 2011 ( NASA ADS).