SBTi.interfaces

Module Contents

Classes

AggregationContribution

Aggregation

ScoreAggregation

ScoreAggregationScopes

ScoreAggregations

ScenarioInterface

PortfolioCompany

IDataProviderCompany

SortableEnum

Create a collection of name/value pairs.

EScope

Create a collection of name/value pairs.

ETimeFrames

Create a collection of name/value pairs.

IDataProviderTarget

class SBTi.interfaces.AggregationContribution

Bases: pydantic.BaseModel

company_name :str
company_id :str
temperature_score :float
contribution_relative :Optional[float]
contribution :Optional[float]
__getitem__(self, item)
class SBTi.interfaces.Aggregation

Bases: pydantic.BaseModel

score :float
proportion :float
contributions :List[AggregationContribution]
__getitem__(self, item)
class SBTi.interfaces.ScoreAggregation

Bases: pydantic.BaseModel

all :Aggregation
influence_percentage :float
grouped :Dict[str, Aggregation]
__getitem__(self, item)
class SBTi.interfaces.ScoreAggregationScopes

Bases: pydantic.BaseModel

S1S2 :Optional[ScoreAggregation]
S3 :Optional[ScoreAggregation]
S1S2S3 :Optional[ScoreAggregation]
__getitem__(self, item)
class SBTi.interfaces.ScoreAggregations

Bases: pydantic.BaseModel

short :Optional[ScoreAggregationScopes]
mid :Optional[ScoreAggregationScopes]
long :Optional[ScoreAggregationScopes]
__getitem__(self, item)
class SBTi.interfaces.ScenarioInterface

Bases: pydantic.BaseModel

number :int
engagement_type :Optional[str]
class SBTi.interfaces.PortfolioCompany

Bases: pydantic.BaseModel

company_name :str
company_id :str
company_isin :Optional[str]
company_lei :Optional[str] = nan
investment_value :float
engagement_target :Optional[bool] = False
user_fields :Optional[dict]
class SBTi.interfaces.IDataProviderCompany

Bases: pydantic.BaseModel

company_name :str
company_id :str
isic :str
ghg_s1s2 :Optional[float]
ghg_s3 :Optional[float]
country :Optional[str]
region :Optional[str]
sector :Optional[str]
industry_level_1 :Optional[str]
industry_level_2 :Optional[str]
industry_level_3 :Optional[str]
industry_level_4 :Optional[str]
company_revenue :Optional[float]
company_market_cap :Optional[float]
company_enterprise_value :Optional[float]
company_total_assets :Optional[float]
company_cash_equivalents :Optional[float]
sbti_validated :bool
class SBTi.interfaces.SortableEnum(*args, **kwds)

Bases: enum.Enum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

__str__(self)

Return str(self).

__ge__(self, other)

Return self>=value.

__gt__(self, other)

Return self>value.

__le__(self, other)

Return self<=value.

__lt__(self, other)

Return self<value.

class SBTi.interfaces.EScope(*args, **kwds)

Bases: SortableEnum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

S1 = S1
S2 = S2
S3 = S3
S1S2 = S1+S2
S1S2S3 = S1+S2+S3
classmethod get_result_scopes(cls) List[EScope]

Get a list of scopes that should be calculated if the user leaves it open.

Returns

A list of EScope objects

class SBTi.interfaces.ETimeFrames(*args, **kwds)

Bases: SortableEnum

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

>>> Color.RED
<Color.RED: 1>
  • value lookup:

>>> Color(1)
<Color.RED: 1>
  • name lookup:

>>> Color['RED']
<Color.RED: 1>

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

SHORT = short
MID = mid
LONG = long
class SBTi.interfaces.IDataProviderTarget

Bases: pydantic.BaseModel

company_id :str
target_type :str
intensity_metric :Optional[str]
scope :EScope
coverage_s1 :float
coverage_s2 :float
coverage_s3 :float
reduction_ambition :float
base_year :int
base_year_ghg_s1 :float
base_year_ghg_s2 :float
base_year_ghg_s3 :float
start_year :Optional[int]
end_year :int
time_frame :Optional[ETimeFrames]
achieved_reduction :Optional[float] = 0
validate_e(cls, val)