xbrl.Context

A Context class represents an XBRL context in the instance document.

class xbrl.Context(Instance instance)

Attributes

xbrl.Context.constraint_set
xbrl.Context.element

Returns an xml.Element object which represents the XML element information item of the XBRL context.

xbrl.Context.entity

Returns an xbrl.Entity object which represents the entity part of the XBRL context.

xbrl.Context.id

Returns a string with the value of the id attribute of the XBRL context.

xbrl.Context.period

Returns an xbrl.Period object which represents the period part of the XBRL context.

xbrl.Context.scenario_element

Returns an xml.Element object which represents the scenario child XML element information item of the XBRL context.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__