argopy.utils.GreenCoding.shieldsio_badge

argopy.utils.GreenCoding.shieldsio_badge#

static GreenCoding.shieldsio_badge(value: float, label: str = 'Total carbon emitted [gCO2eq]') str[source]#

Insert value in a Shields.io badge and return url

Insert total measurement value into a shields.io badge url

Parameters:
  • value (float) – The carbon footprint value

  • label (str, default: 'Total carbon emitted [gCO2eq]') – The badge label to use

Return type:

str